public interface OdsxFilterInterface extends FwkControllerInterface, FwkCommandInterface, FwkDOMHandlerInterface, java.lang.Cloneable
CONTROLLER_PROPERTY, MENU_REASON_CANCELED, MENU_REASON_DESELECTED, MENU_REASON_SELECTED
AUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME
Modifier and Type | Method and Description |
---|---|
void |
addCommand(OdsxPresentableElementInterface presentable,
FwkCommandInterface command)
Add the command to the command array.
|
void |
addCommand(OdsxPresentableElementInterface presentable,
int index,
FwkCommandInterface command)
Insert a command at the specified position.
|
void |
addToGroup(OdsxPresentableElementInterface presentable,
int index,
java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
void |
addToGroup(OdsxPresentableElementInterface presentable,
java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
java.lang.Object |
clone()
Clone the filter.
|
void |
clone(OdsxFilterInterface filter)
Clone the incoming filter.
|
boolean |
commandsAvailable(OdsxPresentableElementInterface presentable)
This method returns a boolean that indicates whether
the command array is initialized.
|
void |
delete(OdsxPresentableElementInterface elem)
Delete an presentable element.
|
void |
deleteGroup(OdsxPresentableElementInterface presentable,
java.lang.String groupIdent)
Delete command group.
|
java.lang.String |
enableKey()
Return the key for enable.
|
FwkPropertyGroupInterface |
getBaseElementGroup()
Returns the base element proproperty group.
|
java.util.Map |
getBaseElementMap()
Deprecated.
use getBaseElementGroup() instread
|
java.awt.Color |
getColor(OdsxPresentableElementInterface elem)
Returns the color for the specified element.
|
FwkCommandInterface |
getCommand(OdsxPresentableElementInterface presentable,
java.lang.String commandName)
Return the command that matches the given command name.
|
FwkCommandInterface[] |
getCommands(OdsxPresentableElementInterface presentable)
Retrieve the command array of the component.
|
boolean |
getEnableApplicationElements()
Get the enable flag of the application elements.
|
boolean |
getEnabled()
Get the enable flag of the filter.
|
boolean |
getEnableInstanceElements()
Get the enable flag of the instance elements.
|
FwkCommandInterface[] |
getGroup(OdsxPresentableElementInterface presentable,
java.lang.String groupIdent)
Retrieve the command group.
|
FwkIconInterface |
getIcon(OdsxPresentableElementInterface elem)
Returns the icon for the specified element.
|
FwkPropertyGroupInterface |
getPropertyGroup()
Get the porperty group.
|
boolean |
getRecursiveApplStructEnabled()
Get a boolean whether the application structure will resolve
recursive structure.
|
java.lang.String |
getTranslatedKey(java.lang.String key,
java.lang.String defaultValue)
Translate a text key.
|
java.lang.String |
getTranslatedName(OdsxPresentableElementInterface elem)
Returns the filtered name of the element.
|
OdsxFilterValueInterface |
getValue(java.lang.String key)
Get filter value.
|
boolean |
groupExists(OdsxPresentableElementInterface presentable,
java.lang.String groupIdent)
Check whether a group exists.
|
boolean |
isEditable(java.lang.String key)
Is the given key editable.
|
boolean |
isEnabled(OdsxPresentableElementInterface elem)
Check if the element is enabled
by this filter.
|
boolean |
isEnabled(java.lang.String key,
boolean defaultValue)
Check if the given key has an enabled entry in filter.
|
boolean |
isVisible(OdsxPresentableElementInterface elem)
Check if the element is visible
by this filter.
|
boolean |
isVisible(java.lang.String key,
boolean defaultValue)
Check if the given key has a visible entry in filter.
|
java.lang.String |
nameKey()
Return the name key.
|
void |
removeCommand(OdsxPresentableElementInterface presentable,
FwkCommandInterface command)
Remove a sub-command.
|
void |
removeFromGroup(OdsxPresentableElementInterface presentable,
java.lang.String groupIdent,
java.lang.String commandName)
Remove a command from a group.
|
void |
setBaseElementGroup(FwkPropertyGroupInterface group)
Sets a base element property group.
|
void |
setBaseElementMap(java.util.Map map)
Deprecated.
use setBaseElementGroup(FwkPropertyGroup) instread
|
void |
setColor(OdsxPresentableElementInterface elem,
java.awt.Color color)
Sets the color for the specified element.
|
void |
setCommands(OdsxPresentableElementInterface presentable,
FwkCommandInterface[] commands)
Set the sub-commands of the command.
|
void |
setEnableApplicationElements(boolean flag)
Enable the application elements.
|
void |
setEnabled(boolean flag)
Enable the filter.
|
void |
setEnabled(OdsxPresentableElementInterface elem,
boolean flag)
Check if the element is enabled
by this filter.
|
void |
setEnableInstanceElements(boolean flag)
Enable the instance elements.
|
void |
setIcon(OdsxPresentableElementInterface elem,
FwkIconInterface icon)
Sets the icon for the specified element.
|
void |
setRecursiveApplStructEnabled(boolean flag)
Set a boolean whether the application structure will resolve
recursive structure.
|
void |
setTranslatedKey(java.lang.String key,
java.lang.String value)
Set key word to be translated to a value.
|
void |
setTranslatedName(OdsxPresentableElementInterface elem,
java.lang.String value)
Returns the filtered name of the element.
|
void |
setValue(java.lang.String group,
OdsxFilterValueInterface value)
Set a filter value.
|
void |
setVisible(OdsxPresentableElementInterface elem,
boolean flag)
Check if the element is visible
by this filter.
|
java.lang.String |
valueKey()
Return the value key.
|
java.lang.String |
visibleKey()
Return the key for visible.
|
destroyController
addActionListener, addMenuListener, execute, getActionListenerArray, getButtonClass, getCommandName, getHelpID, getIcon, getIconKey, getMenuEventEnabled, getMenuItemClass, getMenuListenerArray, getMnemonic, getProperties, getProperty, getRadioGroupState, getSensitivity, getSeparator, getText, getTextKey, getToggle, getToggleState, getToolBarEnabled, getToolTipKey, getToolTipText, getVisibility, hasActionListeners, hasMenuListeners, isParent, menuSelect, register, registeredObjects, registrySize, removeActionListener, removeMenuListener, setAsParent, setButtonClass, setCommandName, setHelpID, setIcon, setIconKey, setMenuEventEnabled, setMenuItemClass, setMnemonic, setProperty, setRadioGroupState, setSensitivity, setSeparator, setText, setTextKey, setToggle, setToggleState, setToolBarEnabled, setToolTipKey, setToolTipText, setVisibility, unregister
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
getVersion, release
getController, setController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
getCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXML
getAuthor, getBuild, getClassName, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleName
java.awt.Color getColor(OdsxPresentableElementInterface elem)
elem
- The presentable element.void setColor(OdsxPresentableElementInterface elem, java.awt.Color color)
elem
- The presentable element.color
- The new color for the element.FwkIconInterface getIcon(OdsxPresentableElementInterface elem)
elem
- The presentable element.void setIcon(OdsxPresentableElementInterface elem, FwkIconInterface icon)
elem
- The presentable element.icon
- The new icon for the element.void setEnabled(boolean flag)
flag
- true if the filter will be enabled.boolean getEnabled()
true
- if the filter id enabled.void setEnableInstanceElements(boolean flag)
flag
- true if the instance elements will be enabled.boolean getEnableInstanceElements()
true
- if the filter id enabled to display instance elements.void setEnableApplicationElements(boolean flag)
flag
- true if the application elements will be enabled.boolean getEnableApplicationElements()
true
- if the filter id enabled to display application elements.boolean isEnabled(OdsxPresentableElementInterface elem)
elem
- The presentable element.boolean isEnabled(java.lang.String key, boolean defaultValue)
key
- The key value.defaultValue
- The default return value.boolean isVisible(OdsxPresentableElementInterface elem)
elem
- The presentable element.boolean isVisible(java.lang.String key, boolean defaultValue)
key
- The key value.defaultValue
- The default return value.void setEnabled(OdsxPresentableElementInterface elem, boolean flag)
elem
- The presentable element.flag
- true if the element should be endabled.void setVisible(OdsxPresentableElementInterface elem, boolean flag)
elem
- The presentable element.flag
- true if the element should be visible.java.lang.String getTranslatedName(OdsxPresentableElementInterface elem)
elem
- The presentable element.void setTranslatedName(OdsxPresentableElementInterface elem, java.lang.String value)
elem
- The presentable element.value
- The new translation value.OdsxFilterValueInterface getValue(java.lang.String key)
key
- The key for that the value should be restore.void setValue(java.lang.String group, OdsxFilterValueInterface value)
group
- The name of the group.value
- the filter value.java.lang.String getTranslatedKey(java.lang.String key, java.lang.String defaultValue)
key
- The text key.defaultValue
- The default value, if null the key will be returned.void setTranslatedKey(java.lang.String key, java.lang.String value)
key
- The text key.value
- the value.void delete(OdsxPresentableElementInterface elem)
elem
- the element to be removed.java.util.Map getBaseElementMap()
getBaseElementGroup()
void setBaseElementMap(java.util.Map map)
setBaseElementGroup(FwkPropertyGroup)
FwkPropertyGroupInterface getBaseElementGroup()
Name, Value, Visible and Enabled
void setBaseElementGroup(FwkPropertyGroupInterface group)
Name, Value, Visible and Enabled
AoAny.Visible = false
void addCommand(OdsxPresentableElementInterface presentable, FwkCommandInterface command)
elem
- the presentable element.command
- The command to be added.void addCommand(OdsxPresentableElementInterface presentable, int index, FwkCommandInterface command)
elem
- the presentable element.index
- The position where the command has to be inserted.command
- The command to be added.FwkCommandInterface getCommand(OdsxPresentableElementInterface presentable, java.lang.String commandName)
elem
- the presentable element.commandName
- The name of the requested command.FwkCommandInterface[] getCommands(OdsxPresentableElementInterface presentable)
elem
- the presentable element.void removeCommand(OdsxPresentableElementInterface presentable, FwkCommandInterface command)
elem
- the presentable element.command
- The sub-command to be removed.void setCommands(OdsxPresentableElementInterface presentable, FwkCommandInterface[] commands)
elem
- the presentable element.commands
- The array containing the sub-commands.boolean commandsAvailable(OdsxPresentableElementInterface presentable)
elem
- the presentable element.void addToGroup(OdsxPresentableElementInterface presentable, int index, java.lang.String groupIdent, java.lang.String commandName)
elem
- the presentable element.index
- Index where the command should be placed.groupIdent
- The string identified of the group.commandName
- The name of the command.void addToGroup(OdsxPresentableElementInterface presentable, java.lang.String groupIdent, java.lang.String commandName)
elem
- the presentable element.groupIdent
- The string identified of the group.commandName
- The name of the command.void removeFromGroup(OdsxPresentableElementInterface presentable, java.lang.String groupIdent, java.lang.String commandName)
elem
- the presentable element.groupIdent
- The string identified of the group.commandName
- The name of the command.void deleteGroup(OdsxPresentableElementInterface presentable, java.lang.String groupIdent)
elem
- the presentable element.groupIdent
- The string identified of the group.FwkCommandInterface[] getGroup(OdsxPresentableElementInterface presentable, java.lang.String groupIdent)
elem
- the presentable element.groupIdent
- The string identified of the group.boolean groupExists(OdsxPresentableElementInterface presentable, java.lang.String groupIdent)
elem
- the presentable element.boolean getRecursiveApplStructEnabled()
void setRecursiveApplStructEnabled(boolean flag)
flag
- true if recursive struture should be resolved.java.lang.Object clone()
FwkPropertyGroupInterface getPropertyGroup()
java.lang.String visibleKey()
java.lang.String enableKey()
java.lang.String valueKey()
the
- value key.java.lang.String nameKey()
the
- name key.boolean isEditable(java.lang.String key)
void clone(OdsxFilterInterface filter)
filter
- The filter from that the configuration should be copied.