Пример #1
0
 /** The Component to resize. */
 public void setTarget(Component el) {
   JsoHelper.setAttribute(jsObj, "target", el.getOrCreateJsObj());
 }
Пример #2
0
 public static NumberField cast(Component component) {
   return new NumberField(component.getOrCreateJsObj());
 }
Пример #3
0
 /**
  * Creates a new PanelHeader from the given component
  *
  * @param component , the component to cast from
  * @return, a new PanelHeader from the component
  */
 public static PanelHeader cast(Component component) {
   return new PanelHeader(component.getOrCreateJsObj());
 }
Пример #4
0
 /**
  * Creates a new TableView from the given component
  *
  * @param component , the component to cast from
  * @return, a new TableView from the component
  */
 public static TreeView cast(Component component) {
   return new TreeView(component.getOrCreateJsObj());
 }
Пример #5
0
 public static Window cast(Component component) {
   return new Window(component.getOrCreateJsObj());
 }
Пример #6
0
 /**
  * Component from which the window should animate while opening.
  *
  * <p>Defaults to: null
  */
 public void setAnimateTarget(Component component) {
   setAnimateTarget(component.getEl());
 }
Пример #7
0
 /** Specifies a Component to receive focus when this Window is focused. */
 public void setDefaultFocus(Component value) {
   setAttribute("defaultFocus", value.getOrCreateJsObj(), true);
 }