|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.LyController
leon.control.LyAreaController
leon.control.LyPanelController
public abstract class LyPanelController
This class implements the basics of a table controller. It is used to factorize code between all table controllers. It is associated with a builder (LySimpleTableBuilder) and a behavior that implements LySimpleTableBehaviorInterface. There is no default implementation of this behavior.
LySimpleTableBuilder
,
LyTableBehaviorInterface
,
LyTableController
,
LyMultiPageTableController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File Version. |
static java.lang.String |
DEMAND_DEFAULT_FOR_MOBILE_PREFERENCE
Menu id : default preference for mobile view. |
static java.lang.String |
DEMAND_DEFAULT_PREFERENCE
Menu id : default preference. |
static java.lang.String |
DEMAND_PREFERENCE_TARGET
Menu id : preference target. |
static java.lang.String |
DEMAND_SAVE_PREFERENCE
Menu id : save preference. |
static java.lang.String |
DEMAND_SELECT_ALL
Menu id : Select all. |
static java.lang.String |
DEMAND_SHARED_PREFERENCE
Menu id : default preference. |
static java.lang.String |
DEMAND_UNSELECT_ALL
Menu id : Deselect all. |
static java.lang.String |
EXTEND_SIMPLE_FILTER
Menu id : Extend simple filter. |
static java.lang.String |
EXTENDED_FILTER_NEW
Menu id : Extended filter new. |
static java.lang.String |
FAST_FILTER
Menu id : Fast filter. |
static java.lang.String |
FILTER_ACTIVE
Menu id : Filter active. |
static java.lang.String |
FILTER_SET
Menu id : Filter set. |
static java.lang.String |
PREFERENCE_TARGET_ACTION
Preference target. |
static java.lang.String |
PREFERENCE_TARGET_CLASS
Preference target. |
static java.lang.String |
SIMPLE_FILTER_NEW
Menu id : Filter new. |
Fields inherited from class leon.control.LyAreaController |
---|
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE |
Fields inherited from class leon.control.LyController |
---|
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP |
Constructor Summary | |
---|---|
LyPanelController(LySession session,
LyController parent,
LyAction action,
LyObjectList context)
Constructor. |
Method Summary | |
---|---|
void |
actionDemand(LyActionDemand demand)
Invoked when an action occurs. |
void |
buildFilter(LyFilter currentFilter)
Set or create a new Filter. |
void |
closeBorderPanel()
Internal method for closing border panel. |
boolean |
enablesMultiSelection()
Method that indicates if controlled panel enables multi-selection or not. |
void |
endFilter(LyController controller,
java.lang.String actionDemand,
LyFilter filter)
The filter edition form is closed : notify registered listener. |
int |
findObject(LyFindController find,
int from,
boolean next)
Find object in the table and select it. |
void |
free(LyController controller)
Free this controller. |
abstract LyObjectList |
getContent()
Get content of the table. |
LyFilter |
getFilter()
Gets initial : indicates to the filter controller the default filter parameters. |
LyAreaController |
getFilterController()
Accessor (internal use) to the internal filter controller displaying (if exists) the filter view of the panel. |
LyFilterEditorController |
getFilterEditorController()
Accessor (internal use) to the internal filter editor controller displaying (if exists) the filter view of the panel. |
abstract LyPanel |
getPanelComponent()
Accessor to the Table component. |
LyPreference |
getPreference()
Gets current preference. |
long |
getRefreshTime()
Accessor to the refresh time of this controller. |
LyObjectList |
getSelection()
Selected objects. |
boolean |
isFilterActive()
Indicates whether the filter is active. |
boolean |
isHorizontal()
Method that indicates if controlled panel is horizontal. |
boolean |
objectAdded(LyWorkSpaceEvent event)
Called when an object is added in the dynamic object list. |
boolean |
objectChanged(LyWorkSpaceEvent event)
Called when an object has changed in the dynamic object list. |
boolean |
objectRemoved(LyWorkSpaceEvent event)
Called when an object is removed from the dynamic object list. |
boolean |
objectStateChanged(LyAdvancedWorkSpaceEvent event)
Called when an object state is changed. |
boolean |
objectUserEvent(LyAdvancedWorkSpaceEvent event)
Called when an object user event occured. |
void |
questionAnswer(boolean result,
java.lang.Object clientData)
Answer to a askQuestion request. |
void |
reset(boolean full)
Reset component. |
void |
selectAllObjects(boolean select)
Select all objects in panel. |
void |
selectObject(LyObject object,
boolean select)
Select an object in the table. |
void |
setFilter(LyFilter newFilter)
Apply the filter to the view This method sets the specified filter as the default filter then invokes activateFilter. |
void |
setIdle(boolean idle)
Sets idle status of the table. |
void |
setPreference(LyPreference preference)
Sets the preference for this controller. |
void |
setRefreshTime(long time)
Sets the refresh time of this controller. |
void |
updatePreferencesMenu()
Update the find menuitem status. |
boolean |
workSpaceEventsGrouped(java.util.ArrayList<LyWorkSpaceEvent> events)
Called when grouped events are sent. |
Methods inherited from class leon.control.LyController |
---|
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getComponent, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilder, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String DEMAND_SELECT_ALL
public static final java.lang.String DEMAND_UNSELECT_ALL
public static final java.lang.String DEMAND_SAVE_PREFERENCE
public static final java.lang.String DEMAND_DEFAULT_PREFERENCE
public static final java.lang.String DEMAND_DEFAULT_FOR_MOBILE_PREFERENCE
public static final java.lang.String DEMAND_SHARED_PREFERENCE
public static final java.lang.String DEMAND_PREFERENCE_TARGET
public static final java.lang.String PREFERENCE_TARGET_ACTION
public static final java.lang.String PREFERENCE_TARGET_CLASS
public static final java.lang.String FAST_FILTER
public static final java.lang.String SIMPLE_FILTER_NEW
public static final java.lang.String EXTENDED_FILTER_NEW
public static final java.lang.String FILTER_SET
public static final java.lang.String EXTEND_SIMPLE_FILTER
public static final java.lang.String FILTER_ACTIVE
Constructor Detail |
---|
public LyPanelController(LySession session, LyController parent, LyAction action, LyObjectList context)
session
- current session associated to the controller. The controller automatically
registers on the specified session.parent
- parent controller (or null for 'root' controller). Controller hierarchy
indicates a child controller (for example a dialog created from a main view)action
- related action. If an action is specified, the controller uses action
parameters (action name, action specific XML view description ...)context
- current context (may be null if the view is not contextual to a list of
objects).Method Detail |
---|
public void free(LyController controller)
free
in class LyAreaController
controller
- parent controllerLyAreaController.free()
public void reset(boolean full)
reset
in class LyAreaController
full
- Boolean indicating if a full reset (including reset of datas) is requiered or
not (only reset graphical area).public void actionDemand(LyActionDemand demand)
actionDemand
in class LyAreaController
demand
- action event created from the view. User interaction.LyController.demandPerformed(leon.view.event.LyDemand)
public abstract LyObjectList getContent()
getContent
in class LyAreaController
public abstract LyPanel getPanelComponent()
public long getRefreshTime()
getRefreshTime
in class LyAreaController
public void setRefreshTime(long time)
time
- the refres time in mspublic void setIdle(boolean idle)
setIdle
in class LyAreaController
idle
- a boolean indicating the idle modepublic boolean objectAdded(LyWorkSpaceEvent event)
event
- the workspace event
LyWorkSpaceListener.objectAdded(leon.data.LyWorkSpaceEvent)
public boolean objectRemoved(LyWorkSpaceEvent event)
event
- the workspace event
LyWorkSpaceListener.objectRemoved(leon.data.LyWorkSpaceEvent)
public boolean objectChanged(LyWorkSpaceEvent event)
event
- the workspace event
LyWorkSpaceListener.objectChanged(leon.data.LyWorkSpaceEvent)
public boolean objectStateChanged(LyAdvancedWorkSpaceEvent event)
event
- Event notifying object state change.
LyAdvancedWorkSpaceListener.objectStateChanged(leon.data.LyAdvancedWorkSpaceEvent)
public boolean objectUserEvent(LyAdvancedWorkSpaceEvent event)
event
- Event notifying object user event.
LyAdvancedWorkSpaceListener.objectUserEvent(leon.data.LyAdvancedWorkSpaceEvent)
public boolean workSpaceEventsGrouped(java.util.ArrayList<LyWorkSpaceEvent> events)
events
- Sorted list of events.
LyAdvancedWorkSpaceListener.workSpaceEventsGrouped(java.util.ArrayList)
public boolean enablesMultiSelection()
public boolean isHorizontal()
public void selectAllObjects(boolean select)
select
- new selection statuspublic LyObjectList getSelection()
getSelection
in class LyAreaController
public int findObject(LyFindController find, int from, boolean next)
find
- the find controllerfrom
- index to start from (-1 : begin)next
- find commant is searching forward (next selection) or previous.
public void selectObject(LyObject object, boolean select)
object
- selected or unselected objectselect
- new selection statuspublic void buildFilter(LyFilter currentFilter)
currentFilter
- current filter or null if a new Filterpublic void endFilter(LyController controller, java.lang.String actionDemand, LyFilter filter)
controller
- reference to the filter controller (filter form which is closing)actionDemand
- actionDemand on filter controller : id of the command such as
LyFormController.DEMAND_VALIDATE, LyFormController.DEMAND_APPLY,
LyFormController.DEMAND_CANCELfilter
- the filter that was created in the formpublic void setFilter(LyFilter newFilter)
newFilter
- current filteractivateFilter(boolean)
public LyFilter getFilter()
public boolean isFilterActive()
public void setPreference(LyPreference preference)
setPreference
in class LyAreaController
preference
- the preference to applypublic LyPreference getPreference()
public void updatePreferencesMenu()
public LyAreaController getFilterController()
public LyFilterEditorController getFilterEditorController()
public void closeBorderPanel()
public void questionAnswer(boolean result, java.lang.Object clientData)
questionAnswer
in interface LyQuestionAnswerInterface
result
- true if the user has clicked on Yes or Okclient
- data specified in the askQuestion methodLyQuestionAnswerInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |