Window
net.datenwerke.gxtdto.client.baseex.widget.DwWindow
Direct Known Subclasses:
ChangePasswordDialog, CodeMirrorPopup, ColumnFilterWindow, ColumnFormatWindow, DadgetCatalog, DetailErrorDialog, DynamicGridWindow, EditSubtotalsWindow, InfoWindow, PropertiesDialog, SelectionPopup, SessionTimeoutWarningDialog, SimpleDialogWindow, SimpleErrorDialog, TerminalWindow, TreeSelectionPopup, WestPropertiesDialog, WizardDialog

public class DwWindow extends Window
  • Field Details

  • Constructor Details

    • DwWindow

      public DwWindow()
    • DwWindow

      public DwWindow(WindowAppearance appearance)
  • Method Details

    • newAutoSizeDialog

      public static DwWindow newAutoSizeDialog()
    • newAutoSizeDialog

      public static DwWindow newAutoSizeDialog(int width)
    • add

      public void add(Widget child)
    • add

      public void add(Widget child, MarginData layoutData)
    • addClassName

      public void addClassName(String name)
    • getCssName

      public String getCssName()
    • getCssHeaderName

      public String getCssHeaderName()
    • getCssBodyName

      public String getCssBodyName()
    • getCssContentName

      public String getCssContentName()
    • setSize

      public void setSize(int width, int height)
    • getViewportMaxWindowWidth

      public int getViewportMaxWindowWidth(int desiredW)
      Calculates the maximum length of the window once and returns it.
      Parameters:
      desiredW - = UiConstants.DIALOG_WIDTH_PX
      Returns:
      (Int) Length of the current window.
    • getViewportMaxWindowHeight

      public int getViewportMaxWindowHeight(int desiredH)
      Calculates the maximum height of the window once and returns it.
      Parameters:
      desiredH - need the actual form/DialogHeight
      Returns:
      (Int) Height of the current window.
    • setSizeViewportConstrained

      public void setSizeViewportConstrained(int width, int height)
    • addCancelButton

      public DwTextButton addCancelButton()
    • addCancelButton

      public DwTextButton addCancelButton(DwWindow.OnButtonClickHandler handler)
    • addSubmitButton

      public DwTextButton addSubmitButton(DwWindow.OnButtonClickHandler handler)
      Careful with real form submits, as the form needs to be attached during the submit.
      Parameters:
      handler -
    • addSpecButton

      public DwTextButton addSpecButton(DwWindow.OnButtonClickHandler handler, String label)
    • addSpecButton

      public DwTextButton addSpecButton(DwWindow.OnButtonClickHandler handler, String label, boolean hide)
    • setHeaderIcon

      public void setHeaderIcon(BaseIcon icon)
    • setCenterOnShow

      public void setCenterOnShow(boolean center)
    • show

      public void show()