|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.AbstractGUIConfigurable
gov.nih.nlm.mms.browser.AbstractBrowserRestrictor
public abstract class AbstractBrowserRestrictor
Generically represents an object that holds criteria for how to restrict or highlight content in finder searches and/or concept view displays.
| Field Summary | |
|---|---|
protected ConceptDataSelector |
cds
|
| Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable |
|---|
data_changed, default_configuration, listeners, user_configuration |
| Constructor Summary | |
|---|---|
AbstractBrowserRestrictor()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
This method returns true if the parameter has the same name as that in this BrowserRestrictor. |
List<Color> |
getColor(Object o)
Returns a List of Colors for which the given parameter
matches in the BrowserRestrictor's key. |
ConceptDataSelector |
getConceptDataSelector()
Returns a ConceptDataSelector. |
Properties |
getProperties()
Returns the Properties representing the configuration choices. |
List<String> |
getStyle(Object o)
Returns a List of font styles for which the given parameter
matches in the BrowserRestrictor's key. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
isBold()
Indicates if restricted data will be displayed in bold. |
boolean |
isConceptViewHideModeEnabled()
Indicates if hide mode is enabled, so restricted data will be hidden from view. |
boolean |
isConceptViewHighlightModeEnabled()
Indicates if highlight mode is enabled, so restricted data will be highlighted when viewed. |
boolean |
isFinderRestrictionEnabled()
Indicates if restrictions will be enacted on Finders. |
boolean |
isItalics()
Indicates if restricted data will be displayed in italics. |
boolean |
isUnderline()
Indicates if restricted data will be displayed in underline. |
abstract boolean |
keep(Object o)
Indicates if the given Object should be kept according to
the restriction rules of this BrowserRestrictor
return true if Object should be kept
false otherwise |
void |
setBold(boolean b)
Sets whether or not the restricted data will be displayed using bold. |
void |
setConceptViewHideModeEnabled(boolean b)
Sets hide mode to be enabled, so restricted data will be hidden from view. |
void |
setConceptViewHighlightModeEnabled(boolean b)
Sets highlight mode to be enabled, so restricted data will be highlighted when viewed. |
void |
setFinderRestrictionEnabled(boolean b)
Sets restrictions to be enacted on Finders. |
void |
setItalics(boolean b)
Sets whether or not the restricted data will be displayed using italics. |
void |
setProperties(Properties props)
Sets the Properties representing the configuration choices. |
void |
setUnderline(boolean b)
Sets whether or not the restricted data will be displayed using underline. |
String |
toString()
Indicates the name of the BrowserRestrictor. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.nih.nlm.mms.browser.BrowserRestrictor |
|---|
getStyleLegend |
| Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable |
|---|
addDataChangeListener, getColor, getGUIConfigurableForValidationFailure, getHelpPanel, getName, getPanel, getTabDescription, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, setPanelSelections, showOptions, validate |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
getConfigurationDetails, resetToDefaults, setConfiguration, setConfiguration |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface java.util.Comparator |
|---|
compare |
| Field Detail |
|---|
protected ConceptDataSelector cds
| Constructor Detail |
|---|
public AbstractBrowserRestrictor()
| Method Detail |
|---|
public ConceptDataSelector getConceptDataSelector()
ConceptDataSelector.
getConceptDataSelector in interface BrowserRestrictorConceptDataSelectorpublic void setFinderRestrictionEnabled(boolean b)
Finders.
setFinderRestrictionEnabled in interface BrowserRestrictorb - true if finder restriction is enabled;
false otherwisepublic boolean isFinderRestrictionEnabled()
Finders.
isFinderRestrictionEnabled in interface BrowserRestrictortrue if restrictions will be enacted on Finders
false otherwisepublic void setConceptViewHideModeEnabled(boolean b)
setConceptViewHideModeEnabled in interface BrowserRestrictorb - true if hide mode should be enabled;
false otherwisepublic boolean isConceptViewHideModeEnabled()
isConceptViewHideModeEnabled in interface BrowserRestrictortrue if hide mode is enabled
false otherwisepublic void setConceptViewHighlightModeEnabled(boolean b)
setConceptViewHighlightModeEnabled in interface BrowserRestrictorb - true if highlight mode is enabled
false otherwisepublic boolean isConceptViewHighlightModeEnabled()
isConceptViewHighlightModeEnabled in interface BrowserRestrictortrue if highlight mode is enabled
false otherwisepublic String toString()
BrowserRestrictor.
toString in class ObjectString namepublic boolean isBold()
isBold in interface BrowserRestrictortrue if bold
false otherwisepublic boolean isItalics()
isItalics in interface BrowserRestrictortrue if italics
false otherwisepublic boolean isUnderline()
isUnderline in interface BrowserRestrictortrue if underline
false otherwisepublic abstract boolean keep(Object o)
Object should be kept according to
the restriction rules of this BrowserRestrictor
return true if Object should be kept
false otherwise
keep in interface Restrictortrue object will be kept
false otherwisepublic void setItalics(boolean b)
setItalics in interface BrowserRestrictortrue - if italics will be used;
false otherwisepublic void setBold(boolean b)
setBold in interface BrowserRestrictortrue - if bold will be used;
false otherwisepublic void setUnderline(boolean b)
setUnderline in interface BrowserRestrictortrue - if underline will be used;
false otherwisepublic boolean equals(Object o)
BrowserRestrictor.
equals in interface Comparatorequals in class Objecto - Object to be compared with this BrowserRestrictor
true if parameter o equals this BrowserRestrictor
false if parameter o is not equal to this BrowserRestrictorpublic Properties getProperties()
Properties representing the configuration choices.
getProperties in interface ConfigurablegetProperties in class AbstractGUIConfigurableProperties representing the configuration choicespublic void setProperties(Properties props)
Properties representing the configuration choices.
setProperties in interface ConfigurablesetProperties in class AbstractGUIConfigurablep - the Properties representing the configuration choicespublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurablehasAdvancedOptions in class AbstractGUIConfigurabletrue if so; false otherwisepublic List<Color> getColor(Object o)
List of Colors for which the given parameter
matches in the BrowserRestrictor's key.
getColor in interface BrowserRestrictoro - Object
public List<String> getStyle(Object o)
List of font styles for which the given parameter
matches in the BrowserRestrictor's key.
getStyle in interface BrowserRestrictoro - Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||