com.jaxfront.swing.ui.visualizers
Class AbstractView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.jaxfront.swing.ui.visualizers.AbstractView
All Implemented Interfaces:
ComplexVisualizer, Visualizer, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
Direct Known Subclasses:
AbstractBean, AbstractComplexVisualizer, AbstractCompositeView, AbstractListTypeView, AbstractSimpleTypeView, ContextView, FormulaVisualizerView, TransparentVisualizer

public abstract class AbstractView
extends javax.swing.JPanel
implements java.beans.PropertyChangeListener, Visualizer, ComplexVisualizer, java.awt.event.ItemListener, java.awt.event.FocusListener

This class represents an AbstractView which is derived from the class JPanel. This class defines abstract methods for all JAXFront Visualizers.

Version:
1.60
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static java.lang.String FILL
           
static java.lang.String FILL_NO_GROW
           
static int HEADER_HEIGHT_OFFSET
           
static java.lang.String PROPERTY_USER_CHANGED_SERIALIZE
           
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AbstractView()
          AbstractView constructor.
AbstractView(java.awt.LayoutManager layout)
          AbstractView constructor.
AbstractView(Type context)
          AbstractView constructor.
 
Method Summary
 void addNewChild()
          Adds a new child to the list.
 void addTreeNode(boolean shouldBeSerialized)
          Adds this type to the tree.
static TabActionIcon createTabActionIcon(int index, Type model, javax.swing.Action tabAction, javax.swing.Action tabInverseAction)
           
 void doUserSerialization(boolean userSerialize)
           
 void focusComponent(AbstractView view)
           
 void focusFirstComponent(boolean allowTreeNodeHighlighting)
          Sets the focus to the first editing component.
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 FunctionalPanel getBorderPanel()
           
static JAXJComboBox getChoiceComboBox(JAXJComboBox comboBox, java.awt.event.ActionListener listener, CompositeType type, Type choosenType)
          Returns a combobox for the choices of this visualizer.
 ColumnSpec[] getColumnSpecLabelAndComponent()
           
 Type getContext()
           
 java.awt.Color getDefaultBackgroundColor()
          Returns the default component background color.
 Document getDOM()
          Returns the current JAXFront document (DOM).
 javax.swing.JComponent getEditorComponent()
          Returns the editor component of the current visualizer.
 javax.swing.JPanel getEditorComponentPanel()
          Returns the component panel.
 java.awt.Component getFirstFocusableComponent()
          Returns the first focusable component of the current view which is needed to set the focus on the first component of a visualizer.
 MultiLineLabel getHintTextLabel()
          Returns the hint label if defined in a XUI.
 Visualizer getImplementation()
           
 javax.swing.JComponent getLabel()
          Returns the label component of the current visualizer.
 javax.swing.JPanel getLabelPanel()
          Returns the label panel.
 javax.swing.JPanel getLabelPanel(javax.swing.JComponent label)
          Returns the label panel.
 java.lang.String getLabelText()
          Returns the label of this visualizer.
 Type getModel()
          Returns the model (type) of this visualizer.
 ColumnSpec[] getPercentageColumnSpecComponent()
           
 RowSpec getRowSpec(java.lang.String layout)
           
 RowSpec[] getRowSpecArray(java.lang.String layout)
           
 RowSpec[] getRowSpecDefaultComponentHeight()
           
 Type getSelectedType()
          Returns the label of this visualizer.
 StyleDefinition getStyle()
           
 javax.swing.JComponent getTableLabelComponent()
           
 javax.swing.JPanel getVisualizerPanel()
          Returns the visualizer panel (label and component) of the current visualizer.
 boolean isRunningInDialog()
          Returns true if the current view is running in the dialog mode.
 boolean isViewReleased()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void jumpTo()
          Bring this visualizer to front and set the focus.
abstract  void markError()
          Displays the error in a special way.
abstract  void populateModel()
          Updates the model (type) that belongs to this visualizer.
abstract  void populateView()
          Updates the view of this visualizer.
 void postInitialization()
          Gets called after the UI factory has created this visualizer.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void release()
          Releases allocated resources for this visualizer.
 void removeHint()
          Removes a user defined hint message below the current component.
 void removeLabel()
          Removes the label from the view.
 void removeMessage()
          Removes the validation error message from this type.
 void removeTreeNode(boolean shouldBeSerialized)
          Removes this type from the tree.
abstract  void resetError()
          Removes the error from this visualizer.
 void scrollToView(javax.swing.JComponent view)
           
 void setApplicationRequired(boolean aBoolean)
          Sets the view component to be required or not defined by the application not by xml schema.
abstract  void setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext, java.lang.String newValue)
           
 void setCodeSetValues(java.lang.String url, java.lang.String codeSetName, java.lang.String[] values, java.lang.String defaultSelection)
          Sets the codeSet values for the current type.
 void setEditable(boolean editable)
          Sets the view component editable .
 void setEditorComponent(javax.swing.JComponent editorComponent)
          Set the editor component of the current visualizer.
 void setEnabled(boolean enabled)
          Sets the view component enabled or disabled.
 void setEnabled(boolean enabled, boolean setOptionalToo)
          Sets the component enabled/disabled.
 void setFirstFocusableComponent(java.awt.Component component)
          Sets the first focusable component of the current view.
abstract  void setLabelColor(java.awt.Color color)
          Sets the foreground color for the label.
 void setLabelText(java.lang.String text)
          Sets the label for this view
 void setModel(Type type)
          Sets the model (type) for this visualizer.
abstract  void setRequired(boolean aBoolean)
          Sets the view component to be required or not.
 void setSerializable(boolean isSerializable)
          Sets a flag that defines if the content of the current type will be serialized or not.
 void setTableLableComponent(javax.swing.JComponent tableLabel)
           
 void setTreeIcon(java.lang.String gifName)
          Sets an icon next to the tree node.
 void setUserSerializable(boolean serialize)
           
 void setValues(java.lang.String[] values, java.lang.String classResolverName)
          Sets the values for the current type.
 void setVisible(boolean visible)
          Sets the view component visible or not visible.
 void setVisibleAndSerializable(boolean visible, boolean serialize)
          Sets the visualizer visible or invisible and allows to define if the content should be serialized or not.
 void showHint(java.lang.String text, boolean isFormula, java.awt.Color color, boolean isBold)
          Shows an user defined hint message below the current component.
 void showLabel(boolean show)
          Sets the label of this visualizer visible or not visible.
 void showMessage(java.lang.String message, java.lang.String classification, boolean showDialog, boolean needsUserAcceptance)
          Shows an user defined message.
 void uiAction(java.lang.String name, java.lang.Object value)
          Initializes a defined ui action.
 boolean useUserModifiedSerialization()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_USER_CHANGED_SERIALIZE

public static final java.lang.String PROPERTY_USER_CHANGED_SERIALIZE
See Also:
Constant Field Values

HEADER_HEIGHT_OFFSET

public static final int HEADER_HEIGHT_OFFSET
See Also:
Constant Field Values

FILL

public static final java.lang.String FILL
See Also:
Constant Field Values

FILL_NO_GROW

public static final java.lang.String FILL_NO_GROW
See Also:
Constant Field Values
Constructor Detail

AbstractView

public AbstractView()
AbstractView constructor.


AbstractView

public AbstractView(Type context)
AbstractView constructor.


AbstractView

public AbstractView(java.awt.LayoutManager layout)
AbstractView constructor.

Parameters:
layout - a LayoutManager that is to be used
Method Detail

postInitialization

public void postInitialization()
Description copied from interface: Visualizer
Gets called after the UI factory has created this visualizer. Do whatever you want here.

Specified by:
postInitialization in interface Visualizer

addTreeNode

public void addTreeNode(boolean shouldBeSerialized)
Adds this type to the tree.

Parameters:
shouldBeSerialized - defines if this type should be serialized

removeTreeNode

public void removeTreeNode(boolean shouldBeSerialized)
Removes this type from the tree.

Parameters:
shouldBeSerialized - defines if the content of this type will be serialized

addNewChild

public void addNewChild()
Adds a new child to the list.


createTabActionIcon

public static TabActionIcon createTabActionIcon(int index,
                                                Type model,
                                                javax.swing.Action tabAction,
                                                javax.swing.Action tabInverseAction)

getChoiceComboBox

public static JAXJComboBox getChoiceComboBox(JAXJComboBox comboBox,
                                             java.awt.event.ActionListener listener,
                                             CompositeType type,
                                             Type choosenType)
Returns a combobox for the choices of this visualizer.

Parameters:
comboBox - a combobox
listener - an actionListener
type - an AbstractCompositeType
choosenType - the choosen type of the choice
Returns:
a JComboBox

getDOM

public Document getDOM()
Returns the current JAXFront document (DOM).

Returns:
the current JAXFront DOM

getEditorComponent

public javax.swing.JComponent getEditorComponent()
Returns the editor component of the current visualizer.

Returns:
the editor component

setEditorComponent

public void setEditorComponent(javax.swing.JComponent editorComponent)
Set the editor component of the current visualizer.


getLabel

public javax.swing.JComponent getLabel()
Returns the label component of the current visualizer.

Returns:
the label component

getVisualizerPanel

public javax.swing.JPanel getVisualizerPanel()
Returns the visualizer panel (label and component) of the current visualizer.

Returns:
the visualizer panel (label and component)

getLabelText

public java.lang.String getLabelText()
Returns the label of this visualizer.

Specified by:
getLabelText in interface Visualizer
Returns:
the label of this visualizer

getModel

public Type getModel()
Description copied from interface: Visualizer
Returns the model (type) of this visualizer.

Specified by:
getModel in interface Visualizer
See Also:
Visualizer.getModel()

getLabelPanel

public javax.swing.JPanel getLabelPanel()
Returns the label panel.

Returns:
the label panel

getLabelPanel

public javax.swing.JPanel getLabelPanel(javax.swing.JComponent label)
Returns the label panel.

Returns:
the label panel

getEditorComponentPanel

public javax.swing.JPanel getEditorComponentPanel()
Returns the component panel.

Returns:
the component panel

setUserSerializable

public void setUserSerializable(boolean serialize)

useUserModifiedSerialization

public boolean useUserModifiedSerialization()

isRunningInDialog

public boolean isRunningInDialog()
Returns true if the current view is running in the dialog mode.

Returns:

markError

public abstract void markError()
Description copied from interface: Visualizer
Displays the error in a special way. For example: a red border around the visualized component.

Specified by:
markError in interface Visualizer
See Also:
Visualizer.markError()

populateModel

public abstract void populateModel()
Description copied from interface: Visualizer
Updates the model (type) that belongs to this visualizer.

Specified by:
populateModel in interface Visualizer
See Also:
Visualizer.populateModel()

populateView

public abstract void populateView()
Description copied from interface: Visualizer
Updates the view of this visualizer.

Specified by:
populateView in interface Visualizer
See Also:
Visualizer.populateView()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

release

public void release()
Description copied from interface: Visualizer
Releases allocated resources for this visualizer.

Specified by:
release in interface Visualizer
See Also:
Visualizer.release()

removeLabel

public void removeLabel()
Description copied from interface: Visualizer
Removes the label from the view.

Specified by:
removeLabel in interface Visualizer
See Also:
Visualizer.removeLabel()

removeMessage

public void removeMessage()
Removes the validation error message from this type.


setSerializable

public void setSerializable(boolean isSerializable)
Sets a flag that defines if the content of the current type will be serialized or not.

Parameters:
type - a given type
isDefined - defines if the content of this type will be serialized

resetError

public abstract void resetError()
Description copied from interface: Visualizer
Removes the error from this visualizer.

Specified by:
resetError in interface Visualizer
See Also:
Visualizer.resetError()

setLabelColor

public abstract void setLabelColor(java.awt.Color color)
Description copied from interface: Visualizer
Sets the foreground color for the label.

Specified by:
setLabelColor in interface Visualizer
Parameters:
color - label foreground color
See Also:
Visualizer.setLabelColor(java.awt.Color)

setLabelText

public void setLabelText(java.lang.String text)
Description copied from interface: Visualizer
Sets the label for this view

Specified by:
setLabelText in interface Visualizer

setModel

public void setModel(Type type)
Description copied from interface: Visualizer
Sets the model (type) for this visualizer.

Specified by:
setModel in interface Visualizer
Parameters:
type - model for the visualizer
See Also:
Visualizer.setModel(com.jaxfront.core.type.Type)

setTreeIcon

public void setTreeIcon(java.lang.String gifName)
Sets an icon next to the tree node.

Parameters:
gifName - the name of the icon

setTableLableComponent

public void setTableLableComponent(javax.swing.JComponent tableLabel)

getTableLabelComponent

public javax.swing.JComponent getTableLabelComponent()

setRequired

public abstract void setRequired(boolean aBoolean)
Description copied from interface: Visualizer
Sets the view component to be required or not. For example: the background of the view component may change its color.

Specified by:
setRequired in interface Visualizer
Parameters:
aBoolean - indicates if a visualizer requires user input
See Also:
Visualizer.setRequired(boolean)

setApplicationRequired

public void setApplicationRequired(boolean aBoolean)
Description copied from interface: Visualizer
Sets the view component to be required or not defined by the application not by xml schema.

Specified by:
setApplicationRequired in interface Visualizer
Parameters:
aBoolean - indicates if a visualizer required user input
See Also:
Visualizer.setApplicationRequired(boolean)

setVisible

public void setVisible(boolean visible)
Description copied from interface: Visualizer
Sets the view component visible or not visible.

Specified by:
setVisible in interface Visualizer
Overrides:
setVisible in class javax.swing.JComponent
Parameters:
visible - visibility of the visualizer
See Also:
Component.setVisible(boolean)

setVisibleAndSerializable

public void setVisibleAndSerializable(boolean visible,
                                      boolean serialize)
Sets the visualizer visible or invisible and allows to define if the content should be serialized or not.

See Also:
Component.setVisible(boolean)

showLabel

public void showLabel(boolean show)
Description copied from interface: Visualizer
Sets the label of this visualizer visible or not visible.

Specified by:
showLabel in interface Visualizer
Parameters:
show - visibility of the label
See Also:
Visualizer.showLabel(boolean)

showMessage

public void showMessage(java.lang.String message,
                        java.lang.String classification,
                        boolean showDialog,
                        boolean needsUserAcceptance)
Shows an user defined message.

Parameters:
message - a message text
needsUserAcceptance - if true, the message resists until the user interacts.

doUserSerialization

public void doUserSerialization(boolean userSerialize)
Specified by:
doUserSerialization in interface ComplexVisualizer

showHint

public void showHint(java.lang.String text,
                     boolean isFormula,
                     java.awt.Color color,
                     boolean isBold)
Shows an user defined hint message below the current component.

Parameters:
text - a hint text or a formula expression
isFormula - true, if the hint text should be treated as formula expression
color - the color of the hint text
isBold - true, if the hint text should be displayed bold

removeHint

public void removeHint()
Removes a user defined hint message below the current component.


uiAction

public void uiAction(java.lang.String name,
                     java.lang.Object value)
Initializes a defined ui action.

Parameters:
name - the name of the ui action
value - a value of the ui action

setCodeSetValues

public void setCodeSetValues(java.lang.String url,
                             java.lang.String codeSetName,
                             java.lang.String[] values,
                             java.lang.String defaultSelection)
Sets the codeSet values for the current type.

Parameters:
url - the url of the codeSet to be set
codeSetName - the name of the codeSet to be set
values - the values of the codeSet
defaultSelection - the default selected code of the codeset

setValues

public void setValues(java.lang.String[] values,
                      java.lang.String classResolverName)
Sets the values for the current type.

Parameters:
values - the values to set in the enumeration
class - name (must implement ValueResolver) is optional

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener
See Also:
ItemListener.itemStateChanged(ItemEvent)

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: Visualizer
Sets the view component enabled or disabled.

Specified by:
setEnabled in interface Visualizer
Overrides:
setEnabled in class javax.swing.JComponent
Parameters:
enabled - enable/disable this visualizer
See Also:
Component.setEnabled(boolean)

setEnabled

public void setEnabled(boolean enabled,
                       boolean setOptionalToo)
Sets the component enabled/disabled.

Parameters:
enabled - true, if the component should be enabled
setOptionalToo - true, if the optionalCheckBox should be enabled true

getDefaultBackgroundColor

public java.awt.Color getDefaultBackgroundColor()
Returns the default component background color.

Returns:
Color the default background color

setChoosenKeyContextValue

public abstract void setChoosenKeyContextValue(java.lang.String xpathRelativeToChoosenKeyContext,
                                               java.lang.String newValue)
See Also:
com.jaxfront.core.type.AbstractType#setChoosenKeyContextValue(java.lang.String, java.lang.String)

getSelectedType

public Type getSelectedType()
Returns the label of this visualizer.

Returns:
the label of this visualizer

scrollToView

public void scrollToView(javax.swing.JComponent view)

getFirstFocusableComponent

public java.awt.Component getFirstFocusableComponent()
Returns the first focusable component of the current view which is needed to set the focus on the first component of a visualizer.

Returns:
the first focusable component

setFirstFocusableComponent

public void setFirstFocusableComponent(java.awt.Component component)
Sets the first focusable component of the current view.

Parameters:
component - the first focusable component

getHintTextLabel

public MultiLineLabel getHintTextLabel()
Returns the hint label if defined in a XUI.

Returns:
MultiLineLabel the hint label if defined in a XUI

setEditable

public void setEditable(boolean editable)
Description copied from interface: Visualizer
Sets the view component editable .

Specified by:
setEditable in interface Visualizer
Parameters:
editable - enable/disable this visualizer
See Also:
Visualizer.setEditable(boolean)

jumpTo

public void jumpTo()
Description copied from interface: Visualizer
Bring this visualizer to front and set the focus.

Specified by:
jumpTo in interface Visualizer

getColumnSpecLabelAndComponent

public ColumnSpec[] getColumnSpecLabelAndComponent()

getPercentageColumnSpecComponent

public ColumnSpec[] getPercentageColumnSpecComponent()

getRowSpecDefaultComponentHeight

public RowSpec[] getRowSpecDefaultComponentHeight()

getRowSpec

public RowSpec getRowSpec(java.lang.String layout)

getRowSpecArray

public RowSpec[] getRowSpecArray(java.lang.String layout)

getBorderPanel

public FunctionalPanel getBorderPanel()

focusFirstComponent

public void focusFirstComponent(boolean allowTreeNodeHighlighting)
Sets the focus to the first editing component.

Parameters:
allowTreeNodeHighlighting - true if the tree node of the first component should be highlighted as selected

focusComponent

public void focusComponent(AbstractView view)

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener
See Also:
FocusListener.focusGained(java.awt.event.FocusEvent)

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)

getImplementation

public Visualizer getImplementation()
Specified by:
getImplementation in interface Visualizer

getContext

public Type getContext()
Specified by:
getContext in interface Visualizer

getStyle

public StyleDefinition getStyle()

isViewReleased

public boolean isViewReleased()
Specified by:
isViewReleased in interface Visualizer