Beispiel #1
0
 public void setComponentValue(final String name, final Object object) {
   super.setComponentValue(name, object);
   if (name.equals("title")) {
     dialog.setCaption((String) object);
   }
   if ("icon".equals(name)) {
     dialog.setIcon(getResource(object));
   }
   if ("h".equals(name)) {
     dialog.setHeight("" + object + "px");
   }
   if ("w".equals(name)) {
     dialog.setWidth("" + object + "px");
   }
   if ("x".equals(name)) {
     dialog.setPositionX((Integer) object);
   }
   if ("y".equals(name)) {
     dialog.setPositionY((Integer) object);
   }
   if ("closable".equals(name)) {
     dialog.setClosable((Boolean) object);
   }
   if ("resizable".equals(name)) {
     dialog.setResizable((Boolean) object);
   }
 }
Beispiel #2
0
  @Override
  public void addToContainer(Object c, Object constraints) {

    super.addToContainer(c, constraints);
    Component cc = (Component) c;
    cc.setWidth("100%");
  }
Beispiel #3
0
 protected synchronized void performComponentMethod(
     String name, TipiComponentMethod compMeth, TipiEvent event) throws TipiBreakException {
   super.performComponentMethod(name, compMeth, event);
   if (name.equals("show")) {
     getVaadinApplication().getMainWindow().addWindow(dialog);
   }
   if (name.equals("hide") || name.equals("dispose")) {
     getVaadinApplication().getMainWindow().removeWindow(dialog);
   }
 }