|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.FrameControl
A frame control
Field Summary | |
private FrameDataModel |
dataModel
Data model |
private FrameDesignModel |
designModel
Design model |
private static long |
serialVersionUID
Serial Version UID |
private FrameStateModel |
stateModel
State Model |
Fields inherited from class com.cc.framework.ui.control.Control |
log |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Constructor Summary | |
FrameControl()
Constructor |
Method Summary | |
void |
close()
Changes the state of the frame to closed |
protected FrameStateModel |
doCreateStatemodel()
Creates the state model for this control instance |
java.lang.String |
getCaption()
Returns the caption of the frame |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.String |
getDetail()
Returns the detail text |
ImageModel |
getImage()
Returns the image for the frames title |
InnerFrame[] |
getInnerFrames(java.lang.Object layoutHint)
Retrieves a list of inner frames that are matching the given layout hint |
StateModel |
getStateModel()
Returns the state model of the control |
boolean |
isClosed()
|
boolean |
isMaximized()
|
boolean |
isMinimized()
|
boolean |
isOpen()
|
void |
maximize()
Maximizes the frame |
void |
minimize()
Minimizes the frame |
void |
onClose(ControlRequestContext ctx)
Default Handler for the Close Event |
void |
onMaximize(ControlRequestContext ctx)
Default Handler for the Maximize Event |
void |
onMinimize(ControlRequestContext ctx)
Default Handler for the Minimize Event |
void |
onRestore(ControlRequestContext ctx)
Default Handler for the Restore Event |
void |
open()
Changes the state of the frame to opened |
void |
reset()
Resets the state model |
void |
restore()
Restores the frame |
void |
setDataModel(FrameDataModel dataModel)
Sets the data model |
void |
setDesignModel(FrameDesignModel designModel)
Sets the design model |
void |
setStateModel(FrameStateModel stateModel)
Sets the StateModel |
boolean |
showButton(ControlButton button)
This Method is called by the Painter before rendering a Button. |
boolean |
showFrame()
|
Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, synchronizeState, synchronizeState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.model.StateModel |
synchronizeState |
Field Detail |
private static final long serialVersionUID
private FrameDataModel dataModel
private FrameDesignModel designModel
private FrameStateModel stateModel
Constructor Detail |
public FrameControl()
Method Detail |
protected FrameStateModel doCreateStatemodel()
public DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public void setDataModel(FrameDataModel dataModel)
dataModel
- The data model of the framepublic ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public void setStateModel(FrameStateModel stateModel)
stateModel
- FrameStateModelpublic void close()
FrameStateModel
close
in interface FrameStateModel
FrameStateModel.close()
public boolean isClosed()
isClosed
in interface FrameStateModel
true
when the Frame is closedFrameStateModel.isClosed()
public boolean isMaximized()
isMaximized
in interface FrameStateModel
true
when the Frame is maximizedFrameStateModel.isMaximized()
public boolean isMinimized()
isMinimized
in interface FrameStateModel
true
when the Frame is minimizedFrameStateModel.isMinimized()
public boolean isOpen()
isOpen
in interface FrameStateModel
true
when the Frame is openedFrameStateModel.isOpen()
public void maximize()
FrameStateModel
maximize
in interface FrameStateModel
FrameStateModel.maximize()
public void minimize()
FrameStateModel
minimize
in interface FrameStateModel
FrameStateModel.minimize()
public void open()
FrameStateModel
open
in interface FrameStateModel
FrameStateModel.open()
public void restore()
FrameStateModel
restore
in interface FrameStateModel
FrameStateModel.restore()
public void setDesignModel(FrameDesignModel designModel)
designModel
- The design model of the framepublic java.lang.String getCaption()
public java.lang.String getDetail()
public ImageModel getImage()
public boolean showFrame()
true
if the fram should be shownpublic void reset()
reset
in interface StateModel
public boolean showButton(ControlButton button)
Control
showButton
in class Control
button
- ControlButton
Control.showButton(com.cc.framework.ui.control.ControlButton)
public InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
layoutHint
- The layout hint that specifies what frames should be selected:
AlignmentType.TOP
- header frames
AlignmentType.BOTTOM
- footer frames
public void onClose(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic void onMinimize(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic void onMaximize(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic void onRestore(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |