|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.model.AbstractHashObject
com.guiseframework.prototype.PrototypeProvision<P>
P - The type of prototype being provided.public class PrototypeProvision<P extends Prototype>
Prototype provision information indicating order, hierarchy, and location for generated components. This description is usually used to generate components and place them in menus and/or toolbars.
| Constructor Summary | |
|---|---|
PrototypeProvision(P prototype,
int order,
boolean isMenu,
boolean isTool)
Prototype constructor with no prototype description parent. |
|
PrototypeProvision(PrototypeProvision<?> parentPrototypeProvision,
P prototype,
int order,
boolean isMenu,
boolean isTool)
Parent prototype description and prototype constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(PrototypeProvision<P> prototypeDescription)
Compares this object with the specified object for order. |
int |
getOrder()
|
PrototypeProvision<?> |
getParentPrototypeProvision()
|
P |
getPrototype()
|
boolean |
isMenu()
|
boolean |
isTool()
|
| Methods inherited from class com.globalmentor.model.AbstractHashObject |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_ORDER
public static final int MIN_ORDER
public static final int MAX_ORDER
public static final int RESOURCE_MENU_ORDER
public static final int EDIT_MENU_ORDER
public static final int INSERT_MENU_ORDER
public static final int VIEW_MENU_ORDER
public static final int TOOL_MENU_ORDER
public static final int CONFIGURE_MENU_ORDER
public static final int WINDOW_MENU_ORDER
public static final int HELP_MENU_ORDER
public static final int RESOURCE_MENU_NEW_ORDER
public static final int RESOURCE_MENU_ADD_ORDER
public static final int RESOURCE_MENU_OPEN_ORDER
public static final int RESOURCE_MENU_CLOSE_ORDER
public static final int RESOURCE_MENU_EDIT_ORDER
public static final int RESOURCE_MENU_SAVE_ORDER
public static final int RESOURCE_MENU_SAVE_AS_ORDER
public static final int RESOURCE_MENU_SAVE_ALL_ORDER
public static final int RESOURCE_MENU_REVERT_ORDER
public static final int RESOURCE_MENU_MOVE_ORDER
public static final int RESOURCE_MENU_RENAME_ORDER
public static final int RESOURCE_MENU_REFRESH_ORDER
public static final int RESOURCE_MENU_DELETE_ORDER
public static final int RESOURCE_MENU_PREVIOUS_ORDER
public static final int RESOURCE_MENU_RECEDE_ORDER
public static final int RESOURCE_MENU_PLAY_ORDER
public static final int RESOURCE_MENU_PAUSE_ORDER
public static final int RESOURCE_MENU_RECORD_ORDER
public static final int RESOURCE_MENU_STOP_ORDER
public static final int RESOURCE_MENU_ADVANCE_ORDER
public static final int RESOURCE_MENU_NEXT_ORDER
public static final int RESOURCE_MENU_RETRIEVE_ORDER
public static final int RESOURCE_MENU_ANNOTATE_ORDER
public static final int RESOURCE_MENU_PROPERTIES_ORDER
public static final int RESOURCE_MENU_EXIT_ORDER
public static final int HELP_MENU_ABOUT_ORDER
| Constructor Detail |
|---|
public PrototypeProvision(P prototype,
int order,
boolean isMenu,
boolean isTool)
prototype - The prototype.order - The order of the prototype.isMenu - Whether this prototype should be used in a menu if available.isTool - Whether this prototype should be used in a toolbar if available.
java.lang.NullPointerException - if the given prototype is null.
java.lang.IllegalArgumentException - if the given order is not -1 and does not come between 0 and 2147483647, inclusive.
public PrototypeProvision(PrototypeProvision<?> parentPrototypeProvision,
P prototype,
int order,
boolean isMenu,
boolean isTool)
parentPrototypeProvision - The prototype description's parent, or null if the prototype description has no parent.prototype - The prototype.order - The order of the prototype.isMenu - Whether this prototype should be used in a menu if available.isTool - Whether this prototype should be used in a toolbar if available.
java.lang.NullPointerException - if the given prototype is null.
java.lang.IllegalArgumentException - if the given order is not -1 and does not come between 0 and 2147483647, inclusive.| Method Detail |
|---|
public PrototypeProvision<?> getParentPrototypeProvision()
null if the prototype description has no parent.public P getPrototype()
public int getOrder()
public boolean isMenu()
public boolean isTool()
public int compareTo(PrototypeProvision<P> prototypeDescription)
compareTo in interface java.lang.Comparable<PrototypeProvision<P extends Prototype>>prototypeDescription - The object to be compared.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||