org.drools.guvnor.client.common
Class FormStyleLayout

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.drools.guvnor.client.common.FormStyleLayout
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class FormStyleLayout
extends com.google.gwt.user.client.ui.Composite

This form style class is to be extended to provide "form style" dialogs (eg in a popup).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
FormStyleLayout()
          This has no header
FormStyleLayout(com.google.gwt.resources.client.ImageResource image, String title)
          Create a new layout with a header and and icon.
 
Method Summary
 void addAttribute(String lbl, com.google.gwt.user.client.ui.Widget editor)
          Add a widget to the "form".
protected  void addHeader(com.google.gwt.resources.client.ImageResource image, String title)
          Adds a header at the top.
protected  void addHeader(com.google.gwt.resources.client.ImageResource image, String title, com.google.gwt.user.client.ui.Widget titleIcon)
           
 void addRow(com.google.gwt.user.client.ui.Widget w)
          Adds a widget that takes up a whole row.
 void clear()
          Clears the layout table.
 int getNumAttributes()
           
 void setFlexTableWidget(int row, int col, com.google.gwt.user.client.ui.Widget widget)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormStyleLayout

public FormStyleLayout(com.google.gwt.resources.client.ImageResource image,
                       String title)
Create a new layout with a header and and icon.


FormStyleLayout

public FormStyleLayout()
This has no header

Method Detail

clear

public void clear()
Clears the layout table.


addAttribute

public void addAttribute(String lbl,
                         com.google.gwt.user.client.ui.Widget editor)
Add a widget to the "form".


addRow

public void addRow(com.google.gwt.user.client.ui.Widget w)
Adds a widget that takes up a whole row.


addHeader

protected void addHeader(com.google.gwt.resources.client.ImageResource image,
                         String title)
Adds a header at the top.


addHeader

protected void addHeader(com.google.gwt.resources.client.ImageResource image,
                         String title,
                         com.google.gwt.user.client.ui.Widget titleIcon)

setFlexTableWidget

public void setFlexTableWidget(int row,
                               int col,
                               com.google.gwt.user.client.ui.Widget widget)

getNumAttributes

public int getNumAttributes()


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.