|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.ashape.interaction.AbstractInteractionBroker
com.miginfocom.calendar.activity.view.ActivityViewInteractionBroker
public class ActivityViewInteractionBroker
An interaction broker to interact with an ActivityView.
Contains commands that can are targeted at manipulating and affecting a specific ActivityView object.
| Field Summary | |
|---|---|
protected ActivityView |
activityView
The activity view to interact with. |
static PropertyKey |
CMD_ADD_CATEGORY_ID
A command used for adding the Activity to a category; first in the list of category id:s. |
static PropertyKey |
CMD_INSTALL_INTERACTION
Installs the interaction by calling ActivityView.getModel().addInteraction(...) with the value. |
static PropertyKey |
CMD_REMOVE_CATEGORY_ID
A command used for removing the Activity from a category. |
static PropertyKey |
CMD_REMOVE_PROPERTY
A command used for removing a property on the Activity. |
static PropertyKey |
CMD_SET_PROPERTY
A command used for setting a property on the Activity. |
static PropertyKey |
CMD_SET_STATE
A command used for setting a state on the Activity. |
static PropertyKey |
CMD_TOGGLE_CATEGORY_ID
A command used for toggle the Activity on/off from a category. |
| Constructor Summary | |
|---|---|
ActivityViewInteractionBroker(ActivityView activityView)
Constructor |
|
| Method Summary | |
|---|---|
ActivityView |
getActivityView()
Returns the activity view sent into the constructor. |
boolean |
handleCommand(Interactor interactor,
Command cmd,
java.awt.event.InputEvent e)
Handels one command. |
| Methods inherited from class com.miginfocom.ashape.interaction.AbstractInteractionBroker |
|---|
handleCommands |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyKey CMD_SET_STATE
Activity.
name is the state to set, e.g. States.MOUSE_OVER and value is the Boolean/String value to set.
States,
MigUtil.isTrue(Object)public static final PropertyKey CMD_SET_PROPERTY
Activity.
Note that if the property set was vetoed that is silently ignored and the property will not be set.
name is the property name and value is the value to set
public static final PropertyKey CMD_REMOVE_PROPERTY
Activity.
name is the property name.
public static final PropertyKey CMD_ADD_CATEGORY_ID
Activity to a category; first in the list of category id:s.
value is the category ID to add.
target an integer (as a string) that denotes the index place to insert. Lenient in upper bounds, so a too high value
will be added last and not throw an index bounds exception. null or "" is same a 0.
public static final PropertyKey CMD_REMOVE_CATEGORY_ID
Activity from a category.
value is the category ID to remove.
public static final PropertyKey CMD_TOGGLE_CATEGORY_ID
Activity on/off from a category.
value is the category ID to remove.
target an integer (as a string) that denotes the index place to insert. Lenient in upper bounds, so a too high value
will be added last and not throw an index bounds exception. null or "" is same a 0.
public static final PropertyKey CMD_INSTALL_INTERACTION
value is the Interaction to add/install.
protected final ActivityView activityView
null.
| Constructor Detail |
|---|
public ActivityViewInteractionBroker(ActivityView activityView)
activityView - The activity view to interact with. For instance setting/getting/removing properties to/from. Not null.| Method Detail |
|---|
public boolean handleCommand(Interactor interactor,
Command cmd,
java.awt.event.InputEvent e)
AbstractInteractionBroker
handleCommand in class AbstractInteractionBrokerinteractor - The interactor the the interaction originated fromcmd - The command that is to be executede - The event that started the interaction, if any.
public ActivityView getActivityView()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||