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
 int 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)
           
 int addRow(com.google.gwt.user.client.ui.Widget w)
          Add a widget to the "form" across an entire row
 void clear()
          Clears the layout table.
 int getNumAttributes()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 void setAttributeVisibility(int row, boolean isVisible)
          Set the visibility of an Attribute
 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
initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, 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, sinkBitlessEvent, 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 int addAttribute(String lbl,
                        com.google.gwt.user.client.ui.Widget editor)
Add a widget to the "form"

Parameters:
lbl - The label displayed in column 0
editor - The Widget displayed in column 1
Returns:
Index of row created

addRow

public int addRow(com.google.gwt.user.client.ui.Widget w)
Add a widget to the "form" across an entire row

Parameters:
w - The Widget displayed in column 1
Returns:
Index of row created

setAttributeVisibility

public void setAttributeVisibility(int row,
                                   boolean isVisible)
Set the visibility of an Attribute

Parameters:
row -
isVisible -

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()

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Overrides:
getWidget in class com.google.gwt.user.client.ui.Composite


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.