org.wingx
Class XDivision

java.lang.Object
  extended by org.wings.SComponent
      extended by org.wings.SContainer
          extended by org.wingx.XDivision
All Implemented Interfaces:
Serializable, Cloneable, LowLevelEventListener, Renderable

public class XDivision
extends SContainer
implements LowLevelEventListener

Created by IntelliJ IDEA. User: hengels Date: Aug 27, 2006 Time: 9:58:56 PM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Field Summary
protected  boolean isTitleClickable
          Is the title clickable? Default is false.
static Selector SELECTOR_TITLE
           
 
Fields inherited from class org.wings.SComponent
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME
 
Constructor Summary
XDivision()
          Creates a XDivision instance
XDivision(SLayoutManager l)
          Creates a XDivision instance with the specified LayoutManager
 
Method Summary
 void fireIntermediateEvents()
          fire events which describes a "in progress" state change, like TreeWillExpand, or ListSelectionEvent with getIsAdjusting() true, ...
 SIcon getIcon()
           
 String getTitle()
          Returns the title of the XDivision.
 Color getTitleColor()
          Returns the title-color of the XDivision.
 SFont getTitleFont()
          Returns the title-font of the XDivision.
 boolean isEpochCheckEnabled()
          Asks the low-level event listener if epoch checking should be perfomed on it.
 boolean isShaded()
          Returns true if the XDivision is shaded.
protected  boolean isShowingChildren()
          Indicates if this container is actually showing it's children.
 boolean isTitleClickable()
          Returns true if the title is clickable.
 void processLowLevelEvent(String name, String[] values)
          Deliver low level/http events (parameters).
 void setIcon(SIcon icon)
           
 void setShaded(boolean shaded)
          Determines whether or not the XDivision is shaded.
 void setTitle(String title)
          Sets the title of the XDivision.
 void setTitleClickable(boolean clickable)
          Determines whether or not the title is clickable.
 void setTitleColor(Color titleColor)
          Sets the title-color of the XDivision.
 void setTitleFont(SFont titleFont)
          Sets the title-font of the XDivision.
 
Methods inherited from class org.wings.SContainer
add, add, add, add, addComponent, addComponent, addComponent, addComponent, addContainerListener, addNotify, clone, fireContainerEvent, getComponent, getComponentCount, getComponentList, getComponents, getConstraintAt, getConstraintList, getLayout, invite, inviteEachComponent, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCG, setLayout, setParentFrame, updateCG
 
Methods inherited from class org.wings.SComponent
addComponentListener, addDynamicStyle, addEventListener, addParentFrameListener, addPropertyChangeListener, addPropertyChangeListener, addRenderListener, addScriptListener, addStyle, fireComponentChangeEvent, fireFinalEvents, fireKeyEvents, fireRenderEvent, getActionMap, getBackground, getBorder, getCG, getClientProperty, getComponentPopupMenu, getDynamicStyle, getDynamicStyles, getFocusTraversalIndex, getFont, getForeground, getHorizontalAlignment, getInputMap, getInputMap, getListenerCount, getListenerList, getListeners, getLowLevelEventId, getName, getParent, getParentFrame, getPreferredSize, getRequestURL, getResidesInForm, getScriptListenerList, getScriptListeners, getSession, getShowAsFormComponent, getStyle, getToolTipText, getVerticalAlignment, isDifferent, isEnabled, isFocusOwner, isRecursivelyVisible, isReloadForced, isUpdatePossible, isVisible, paramString, processComponentEvent, processKeyEvents, putClientProperty, reload, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, reloadIfChange, removeComponentListener, removeDynamicStyle, removeEventListener, removeParentFrameListener, removePropertyChangeListener, removePropertyChangeListener, removeRenderListener, removeScriptListener, removeStyle, requestFocus, scrollRectToVisible, setActionMap, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setBackground, setBorder, setCG, setComponentPopupMenu, setDynamicStyles, setEnabled, setFocusTraversalIndex, setFont, setForeground, setHorizontalAlignment, setInputMap, setInputMap, setName, setNameRaw, setParent, setPreferredSize, setReloadForced, setShowAsFormComponent, setStyle, setToolTipText, setVerticalAlignment, setVisible, toString, update, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wings.LowLevelEventListener
fireFinalEvents, getLowLevelEventId, getName, isEnabled
 

Field Detail

isTitleClickable

protected boolean isTitleClickable
Is the title clickable? Default is false.


SELECTOR_TITLE

public static final Selector SELECTOR_TITLE
Constructor Detail

XDivision

public XDivision(SLayoutManager l)
Creates a XDivision instance with the specified LayoutManager

Parameters:
l - the LayoutManager

XDivision

public XDivision()
Creates a XDivision instance

Method Detail

getTitle

public String getTitle()
Returns the title of the XDivision.

Returns:
String the title

setTitle

public void setTitle(String title)
Sets the title of the XDivision.

Parameters:
title - the title

setTitleFont

public void setTitleFont(SFont titleFont)
Sets the title-font of the XDivision.

Parameters:
titleFont - the font for the title

getTitleFont

public SFont getTitleFont()
Returns the title-font of the XDivision.

Returns:
SFont the font for the title

setTitleColor

public void setTitleColor(Color titleColor)
Sets the title-color of the XDivision.

Parameters:
titleColor - the color for the title

getTitleColor

public Color getTitleColor()
Returns the title-color of the XDivision.

Returns:
titleColor the color for the title

setTitleClickable

public void setTitleClickable(boolean clickable)
Determines whether or not the title is clickable.

Parameters:
clickable - true if the title is clickable

isTitleClickable

public boolean isTitleClickable()
Returns true if the title is clickable.

Returns:
boolean true if the title is clickable

getIcon

public SIcon getIcon()

setIcon

public void setIcon(SIcon icon)

isShaded

public boolean isShaded()
Returns true if the XDivision is shaded.

Returns:
boolean true if the XDivision is shaded

setShaded

public void setShaded(boolean shaded)
Determines whether or not the XDivision is shaded.

Parameters:
shaded - true if the XDivision is shaded

processLowLevelEvent

public void processLowLevelEvent(String name,
                                 String[] values)
Description copied from interface: LowLevelEventListener
Deliver low level/http events (parameters). The name-value-pairs of the HTTPRequest are considered low level events.

Specified by:
processLowLevelEvent in interface LowLevelEventListener
Overrides:
processLowLevelEvent in class SComponent
Parameters:
name - the name-value-pair's name
values - the name-value-pair's values

fireIntermediateEvents

public void fireIntermediateEvents()
Description copied from interface: LowLevelEventListener
fire events which describes a "in progress" state change, like TreeWillExpand, or ListSelectionEvent with getIsAdjusting() true, ...

Specified by:
fireIntermediateEvents in interface LowLevelEventListener

isEpochCheckEnabled

public boolean isEpochCheckEnabled()
Description copied from interface: LowLevelEventListener
Asks the low-level event listener if epoch checking should be perfomed on it. If true the Dispatcher will ignore request originating from old views (typically iniated by triggering browser back and clicking somewhere.)

Specified by:
isEpochCheckEnabled in interface LowLevelEventListener
Returns:
true if epoch checking should be perfomed, false if all request for this component should be processed.

isShowingChildren

protected boolean isShowingChildren()
Description copied from class: SContainer
Indicates if this container is actually showing it's children. Default is true

Overrides:
isShowingChildren in class SContainer
Returns:
true if SContainer.getComponents() are rendered, false if i.e the container hides them (i.e minimized MDI window).


wingS Swings ;-)