Example #1
0
 /** The Component to resize. */
 public void setTarget(Component el) {
   JsoHelper.setAttribute(jsObj, "target", el.getOrCreateJsObj());
 }
Example #2
0
 public static NumberField cast(Component component) {
   return new NumberField(component.getOrCreateJsObj());
 }
Example #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());
 }
Example #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());
 }
Example #5
0
 public static Window cast(Component component) {
   return new Window(component.getOrCreateJsObj());
 }
Example #6
0
 /**
  * Component from which the window should animate while opening.
  *
  * <p>Defaults to: null
  */
 public void setAnimateTarget(Component component) {
   setAnimateTarget(component.getEl());
 }
Example #7
0
 /** Specifies a Component to receive focus when this Window is focused. */
 public void setDefaultFocus(Component value) {
   setAttribute("defaultFocus", value.getOrCreateJsObj(), true);
 }