|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--org.objectweb.jac.aspects.gui.swing.SwingCustomized
Field Summary |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SwingCustomized(ViewFactory factory,
DisplayContext context,
CustomizedGUI customized)
|
Method Summary | |
void |
addHorizontalStrut(int width)
Adds an horizontal separator in the composite in order to insert blanks between components. |
void |
addVerticalStrut(int height)
Adds a vertical separator in the composite in order to insert blanks between components. |
void |
addView(View view)
Adds a component view in the composite. |
void |
addView(View view,
Object extraInfos)
Adds a component view in the composite. |
void |
close(boolean validate)
Close this view. |
boolean |
containsView(String viewType,
Object[] parameters)
Tells wether the composite view contains a view with some given view type and paramters |
boolean |
equalsView(String type,
Object[] parameters)
|
boolean |
equalsView(ViewIdentity view)
Tells if a view is the same as another one, ie it has the same type and parameters. |
DisplayContext |
getContext()
|
CustomizedGUI |
getCustomizedGUI()
Returns the customized GUI, i.e. the object that contains all the parametrization of this view as built by the GUI aspect. |
String |
getDescription()
Get the value of description. |
ViewFactory |
getFactory()
Gets the factory. |
String |
getLabel()
Gets the view's label (identifier). |
MethodItem |
getMessage()
Get the value of message. |
PanelView |
getPanelView()
Returns the content pane of the customized, i.e. a panel containing some sub-panels. |
Object[] |
getParameters()
The parameters that were used to compile the view. |
View |
getParentView()
Get the value of parentView. |
View |
getRootView()
Gets the ancestor view whose parent is null |
String |
getStyle()
Gets the user-defined style for this view. |
String |
getType()
Gets the view type. |
View |
getView(Object id)
Gets a component view from an id object. |
Border |
getViewBorder()
Get the value of viewBorder. |
Collection |
getViews()
Gets all the component views in this composite. |
boolean |
isClosed()
Tells if this view has been closed by the GUI or the user. |
boolean |
isDescendantOf(View ancestor)
Tells wether this view has a given view in its ancestors |
void |
removeAllViews(boolean validate)
Removes all the views in this composite. |
void |
removeView(View component,
boolean validate)
Removes a component view in this composite. |
void |
requestFocus()
|
void |
setContext(DisplayContext context)
Sets the display context for this view. |
void |
setDescription(String v)
Set the value of description. |
void |
setFactory(ViewFactory factory)
Sets the factory for this view (WEB, SWING or other supported factory). |
void |
setFocus(FieldItem field,
Object option)
Focus a field of an object's view. |
void |
setLabel(String label)
Sets the label (the identifier) of the view. |
void |
setMenuBar(MenuView menuBar,
String position)
Set a menu bar to the customized. |
void |
setMessage(MethodItem v)
Set the value of message. |
void |
setParameters(Object[] parameters)
Sets the parameters that were used to construct the view. |
void |
setParentView(View v)
Set the value of parentView. |
void |
setPosition(int left,
int up,
int width,
int height)
Sets the dimensions and position of the window regarding to the main screen. |
void |
setSize(Length width,
Length height)
Sets the preferred size for this view. |
void |
setSplitters()
|
void |
setStatusBar(StatusView view,
String position)
Set a status bar to the customized. |
void |
setStyle(String style)
Sets the view style. |
void |
setToolBar(MenuView toolBar)
Set a tool bar to the customized. |
void |
setType(String type)
Set the view type. |
void |
setViewBorder(Border v)
Set the value of viewBorder. |
void |
showStatus(String message)
Show a message on the customized's status bar. |
String |
toString()
|
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public SwingCustomized(ViewFactory factory, DisplayContext context, CustomizedGUI customized)
Method Detail |
public void addHorizontalStrut(int width)
CompositeView
addHorizontalStrut
in interface CompositeView
public void addVerticalStrut(int height)
CompositeView
addVerticalStrut
in interface CompositeView
public void setSplitters()
public void setPosition(int left, int up, int width, int height)
left
- left-border pixelup
- upper-border pixelwidth
- in percentage regarding the screenheight
- in percentage regarding the screenpublic void close(boolean validate)
View
close
in interface View
validate
- wether to validate any value contained in editors.public boolean isClosed()
View
isClosed
in interface View
public Border getViewBorder()
getViewBorder
in interface View
public void setViewBorder(Border v)
setViewBorder
in interface View
v
- Value to assign to viewBorder.public void setStyle(String style)
View
setStyle
in interface View
public String getStyle()
View
getStyle
in interface View
public String getDescription()
getDescription
in interface View
public void setDescription(String v)
setDescription
in interface View
v
- Value to assign to description.View.setMessage(MethodItem)
public View getParentView()
getParentView
in interface View
CompositeView
public void setParentView(View v)
setParentView
in interface View
v
- Value to assign to parentView.CompositeView
public View getRootView()
View
getRootView
in interface View
public boolean isDescendantOf(View ancestor)
View
isDescendantOf
in interface View
ancestor
- the ancestorpublic MethodItem getMessage()
getMessage
in interface View
public void setMessage(MethodItem v)
setMessage
in interface View
v
- Value to assign to message.View.setDescription(String)
public void setLabel(String label)
View
setLabel
in interface View
label
- a string that identifies the viewpublic String getLabel()
View
getLabel
in interface View
public void setFactory(ViewFactory factory)
View
setFactory
in interface View
public ViewFactory getFactory()
View
getFactory
in interface View
public void setContext(DisplayContext context)
View
The display context contains the factory that is used for this view.
setContext
in interface View
public void setSize(Length width, Length height)
View
setSize
in interface View
width
- the preferred width. If null, the preferred width is not changed.height
- the preferred height. If null, the preferred height is not changed.public void setParameters(Object[] parameters)
ViewIdentity
setParameters
in interface ViewIdentity
public Object[] getParameters()
ViewIdentity
getParameters
in interface ViewIdentity
public void setType(String type)
ViewIdentity
setType
in interface ViewIdentity
public String getType()
ViewIdentity
getType
in interface ViewIdentity
public boolean equalsView(ViewIdentity view)
ViewIdentity
equalsView
in interface ViewIdentity
public boolean equalsView(String type, Object[] parameters)
equalsView
in interface ViewIdentity
public void addView(View view, Object extraInfos)
CompositeView
addView
in interface CompositeView
view
- the component viewextraInfos
- some positionning infos on where the component
should be added in the compositepublic void addView(View view)
CompositeView
addView
in interface CompositeView
view
- the component viewpublic Collection getViews()
CompositeView
getViews
in interface CompositeView
public View getView(Object id)
CompositeView
getView
in interface CompositeView
public void removeView(View component, boolean validate)
CompositeView
removeView
in interface CompositeView
component
- the component view to removevalidate
- wether to validate values in editorspublic void removeAllViews(boolean validate)
CompositeView
removeAllViews
in interface CompositeView
validate
- wether to validate values in editorspublic boolean containsView(String viewType, Object[] parameters)
CompositeView
containsView
in interface CompositeView
viewType
- the type of the view to look forparameters
- the parameters of the view to look for
public void setFocus(FieldItem field, Object option)
View
setFocus
in interface View
field
- the field to focusoption
- an extra optionpublic CustomizedGUI getCustomizedGUI()
CustomizedView
getCustomizedGUI
in interface CustomizedView
public void setMenuBar(MenuView menuBar, String position)
CustomizedView
setMenuBar
in interface CustomizedView
menuBar
- the abstract menu barposition
- (TOP||BOTTOM)public void setToolBar(MenuView toolBar)
CustomizedView
setToolBar
in interface CustomizedView
toolBar
- the abstract tool barpublic void setStatusBar(StatusView view, String position)
CustomizedView
setStatusBar
in interface CustomizedView
view
- the abstract status barposition
- (TOP||BOTTOM)public void showStatus(String message)
CustomizedView
showStatus
in interface CustomizedView
message
- the message to showpublic PanelView getPanelView()
CustomizedView
getPanelView
in interface CustomizedView
public DisplayContext getContext()
getContext
in interface View
public void requestFocus()
requestFocus
in interface CustomizedView
requestFocus
in class Component
public String toString()
toString
in class Component
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |