javax.rad.application.genui
Class Content

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<C>
          extended by javax.rad.genui.UIContainer<IPanel>
              extended by javax.rad.genui.container.UIPanel
                  extended by javax.rad.application.genui.Content
All Implemented Interfaces:
IContent, ITranslatable, IPanel, IComponent, IContainer, IResource, INamedObject, ITranslator
Direct Known Subclasses:
ControllerContent, Dialog

public class Content
extends UIPanel
implements IContent

The Content is the default IContent implementation and extends an UIPanel.


Field Summary
 
Fields inherited from class javax.rad.genui.container.UIPanel
imgBack
 
Fields inherited from class javax.rad.genui.UIContainer
allComponents, components
 
Fields inherited from class javax.rad.genui.UIComponent
bTranslate, lLastTranslationModified, parent, popupMenu
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Constructor Summary
Content()
          Creates a new instance of Content.
Content(UILayout pLayout)
          Creates a new instance of Content.
 
Method Summary
 void addNotify()
          Makes this UIComponent displayable by adding it to an UIContainer.
protected  java.lang.String createComponentName()
          Creates a name for this UIComponent.
<OP> OP
getOpener()
          Gets the opener of the content.
 boolean isDestroyed()
          Gets whether the content is already destroyed.
 void notifyDestroy()
          Notifies the content, that it will be destroyed.
 void notifyVisible()
          Notifies the content, that it is now positioned and showing.
<OP> void
setOpener(OP pOpener)
          Sets the opener of the content.
 
Methods inherited from class javax.rad.genui.container.UIPanel
getBackgroundImage, setBackgroundImage
 
Methods inherited from class javax.rad.genui.UIContainer
add, add, add, add, addInternal, beforeAddNotify, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, removeNotify, setLayout, setUIResourceContainer, setZOrder, updateTranslation
 
Methods inherited from class javax.rad.genui.UIComponent
capture, createComponentNamePrefix, debug, doEventKey, doTriggerPopMenu, equals, error, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKey, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getDefaultName, getEventSource, getExistingNames, getFactory, getFont, getForeground, getLocation, getLocationOffset, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPopupMenu, getPreferredSize, getResource, getRootName, getSize, getStyle, getTabIndex, getToolTipText, getTranslation, getUIComponent, hashCode, incrementNameIfExists, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, requestFocus, setBackground, setBounds, setBounds, setCursor, setDefaultName, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPopupMenu, setPreferredSize, setPreferredSize, setRootName, setSize, setSize, setStyle, setTabIndex, setToolTipText, setTranslation, setTranslationEnabled, setUIComponent, setVisible, translate
 
Methods inherited from class javax.rad.genui.UIResource
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyle, getTabIndex, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setStyle, setTabIndex, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 

Constructor Detail

Content

public Content()
Creates a new instance of Content.


Content

public Content(UILayout pLayout)
Creates a new instance of Content.

Parameters:
pLayout - the layout.
Method Detail

setOpener

public <OP> void setOpener(OP pOpener)
Sets the opener of the content.

Specified by:
setOpener in interface IContent
Type Parameters:
OP - the opener type
Parameters:
pOpener - the opener component or null if the component is unknown

getOpener

public <OP> OP getOpener()
Gets the opener of the content.

Specified by:
getOpener in interface IContent
Type Parameters:
OP - the opener type
Returns:
the opener component or null if the opener is unknown

notifyVisible

public void notifyVisible()
Notifies the content, that it is now positioned and showing.

Specified by:
notifyVisible in interface IContent

notifyDestroy

public void notifyDestroy()
Notifies the content, that it will be destroyed.

Specified by:
notifyDestroy in interface IContent

isDestroyed

public boolean isDestroyed()
Gets whether the content is already destroyed.

Specified by:
isDestroyed in interface IContent
Returns:
true if content is destroyed, false otherwise

addNotify

public void addNotify()
Makes this UIComponent displayable by adding it to an UIContainer. This method is called internally by the genui and should not be called directly.

Overrides:
addNotify in class UIContainer<IPanel>
See Also:
UIComponent.removeNotify(), UIComponent.isNotified()

createComponentName

protected java.lang.String createComponentName()
Creates a name for this UIComponent. The returned name needs to be unique in the current root/workscreen and is ideally, but not necessarily, prefixed with the UIComponent.sRootName, if there is any. Overriding classes should be aware that this method will be called in UIComponent.addNotify() and the returned name will only be assigned to the UIComponent if there isn't already a name set. Also UIComponent.stExistingNames can be used to find out if a name has already been assigned, and UIComponent.sRootName to get the root name. In rare cases UIComponent.stExistingNames and/or UIComponent.sRootName might be null when this method is called.

Overrides:
createComponentName in class UIComponent<IPanel>
Returns:
a unique name for this UIComponent.
See Also:
UIComponent.getExistingNames(), UIComponent.getRootName(), UIComponent.incrementNameIfExists(String, Set, boolean)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.