com.jaxfront.core.ui
Interface Visualizer

All Known Subinterfaces:
ListVisualizer, RecursionVisualizer

public interface Visualizer

Represents a graphical UI widget for a JAXFront type.


Method Summary
 Type getContext()
           
 Visualizer getImplementation()
           
 java.lang.String getLabelText()
          Returns the label of this visualizer.
 Type getModel()
          Returns the model (type) of this visualizer.
 int getRendererType()
          Returns the type (html,swind,pdf)of the visualizer.
 boolean isViewReleased()
           
 void jumpTo()
          Bring this visualizer to front and set the focus.
 void markError()
          Displays the error in a special way.
 void populateModel()
          Updates the model (type) that belongs to this visualizer.
 void populateView()
          Updates the view of this visualizer.
 void postInitialization()
          Gets called after the UI factory has created this visualizer.
 void release()
          Releases allocated resources for this visualizer.
 void removeLabel()
          Removes the label from the view.
 void resetError()
          Removes the error from this visualizer.
 void setApplicationRequired(boolean required)
          Sets the view component to be required or not defined by the application not by xml schema.
 void setContext(Type type)
          Sets the view context (type) for this visualizer.
 void setEditable(boolean enabled)
          Sets the view component editable .
 void setEnabled(boolean enabled)
          Sets the view component enabled or disabled.
 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.
 void setRequired(boolean required)
          Sets the view component to be required or not.
 void setVisible(boolean visible)
          Sets the view component visible or not visible.
 void showLabel(boolean show)
          Sets the label of this visualizer visible or not visible.
 

Method Detail

getContext

Type getContext()

getImplementation

Visualizer getImplementation()

getLabelText

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


getModel

Type getModel()
Returns the model (type) of this visualizer.


getRendererType

int getRendererType()
Returns the type (html,swind,pdf)of the visualizer.

See Also:
(RENDERER_TYPE_SWING RENDERER_TYPE_HTML RENDERER_TYPE_PDF)

isViewReleased

boolean isViewReleased()

jumpTo

void jumpTo()
Bring this visualizer to front and set the focus.


markError

void markError()
Displays the error in a special way. For example: a red border around the visualized component.


populateModel

void populateModel()
Updates the model (type) that belongs to this visualizer.


populateView

void populateView()
Updates the view of this visualizer.


postInitialization

void postInitialization()
Gets called after the UI factory has created this visualizer. Do whatever you want here.


release

void release()
Releases allocated resources for this visualizer.


removeLabel

void removeLabel()
Removes the label from the view.


resetError

void resetError()
Removes the error from this visualizer.


setApplicationRequired

void setApplicationRequired(boolean required)
Sets the view component to be required or not defined by the application not by xml schema.

Parameters:
required - indicates if a visualizer required user input

setContext

void setContext(Type type)
Sets the view context (type) for this visualizer.

Parameters:
type - context for the visualizer

setEditable

void setEditable(boolean enabled)
Sets the view component editable .

Parameters:
enabled - enable/disable this visualizer

setEnabled

void setEnabled(boolean enabled)
Sets the view component enabled or disabled.

Parameters:
enabled - enable/disable this visualizer

setLabelColor

void setLabelColor(java.awt.Color color)
Sets the foreground color for the label.

Parameters:
color - label foreground color

setLabelText

void setLabelText(java.lang.String text)
Sets the label for this view

Parameters:
text -

setModel

void setModel(Type type)
Sets the model (type) for this visualizer.

Parameters:
type - model for the visualizer

setRequired

void setRequired(boolean required)
Sets the view component to be required or not. For example: the background of the view component may change its color.

Parameters:
required - indicates if a visualizer requires user input

setVisible

void setVisible(boolean visible)
Sets the view component visible or not visible.

Parameters:
visible - visibility of the visualizer

showLabel

void showLabel(boolean show)
Sets the label of this visualizer visible or not visible.

Parameters:
show - visibility of the label