Package hec.script
Class ScriptIdentifier
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.script.ScriptIdentifier
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
public class ScriptIdentifier
extends NamedType
implements Serializable, Comparable, AsciiSerializable
identifier to pull scripts
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanwhether to display in script menuprotected booleanwhether to display on buttonprotected booleanwhether to display in script selectorprotected Stringidentifies the fileprotected booleanhas the user selected a different script fileprotected Stringpath to icon fileprotected Stringidentifies the module locationprotected Objectprotected Stringname to display on button or menuFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionScriptIdentifier(String userName, String name, String description, String fileName, String modulePath, Object scriptId, boolean displayedToUser, boolean fileNameOverridden) ScriptIdentifier(String userName, String name, String description, String fileName, String modulePath, Object scriptId, boolean displayedInMenu, boolean displayedToUser, boolean fileNameOverridden) ScriptIdentifier(String userName, String name, String description, String fileName, String modulePath, Object scriptId, boolean displayedInMenu, boolean displayedToUser, boolean displayScriptInSelector, boolean fileNameOverridden) -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleanreturn the description that is formatted for a tooltipinthashCode()booleanbooleanbooleanvoidsetBackgroundColorStr(String colorStr) voidsetDisplayedInMenu(boolean b) voidsetDisplayedInSelector(boolean b) voidsetDisplayedToUser(boolean b) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetFileName(String fileName) voidsetFileNameOverridden(boolean b) voidsetGroupName(String groupName) voidsetIconName(String name) voidsetModulePath(String modulePath) voidsetScriptId(String scriptId) voidsetUserDisplayedName(String name) toString()Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
_fileName
identifies the file -
_modulePath
identifies the module location -
_scriptId
-
_userName
name to display on button or menu -
_displayedInMenu
protected boolean _displayedInMenuwhether to display in script menu -
_displayedToUser
protected boolean _displayedToUserwhether to display on button -
_displayScriptInSelector
protected boolean _displayScriptInSelectorwhether to display in script selector -
_fileNameOverridden
protected boolean _fileNameOverriddenhas the user selected a different script file -
_iconName
path to icon file
-
-
Constructor Details
-
ScriptIdentifier
public ScriptIdentifier() -
ScriptIdentifier
-
ScriptIdentifier
-
ScriptIdentifier
-
ScriptIdentifier
-
-
Method Details
-
getFileName
-
setFileName
-
setModulePath
-
setScriptId
-
getModulePath
-
getScriptId
-
getUserDisplayedName
-
setUserDisplayedName
-
isDisplayedInMenu
public boolean isDisplayedInMenu() -
isDisplayedToUser
public boolean isDisplayedToUser() -
isDisplayedInSelector
public boolean isDisplayedInSelector() -
setDisplayedInMenu
public void setDisplayedInMenu(boolean b) -
setDisplayedToUser
public void setDisplayedToUser(boolean b) -
setDisplayedInSelector
public void setDisplayedInSelector(boolean b) -
setFileNameOverridden
public void setFileNameOverridden(boolean b) -
getFileNameOverridden
public boolean getFileNameOverridden() -
getIconName
-
setIconName
-
equals
-
getHtmlDescription
return the description that is formatted for a tooltip- Returns:
- the html formatted description
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classNamedType
-
setBackgroundColorStr
-
getBackgroundColorStr
-
setGroupName
-
getGroupName
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
toString
-