Class AnnotationVisibilityCommand
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.commands.AbstractContextCommand
com.levigo.jadice.web.client.commands.AbstractPageViewCommand
com.levigo.jadice.web.client.commands.AbstractMouseCommand
com.levigo.jadice.web.client.commands.AbstractDocumentCommand
com.levigo.jadice.web.client.commands.AbstractAnnotationCommand
com.levigo.jadice.web.client.commands.AnnotationVisibilityCommand
- All Implemented Interfaces:
Command
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
AbstractDocumentCommand.Scope -
Field Summary
Fields inherited from class com.levigo.jadice.web.client.commands.AbstractAnnotationCommand
annotationType, profile, profileId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if this command can be executed.protected voidexecute()This method is called in order to execute the command.protected Collection<AnnotationFactory> Tries to retrieve the toggle mode value from command parameters at given parameter indexbooleanReturns the selected state of this command.voidsetTypeNames(String... typeNames) voidsetTypeNames(ArrayList<String> typeNames) voidsetTypeNamesFromString(String typeNames) protected voidToggles visibility of annotations described by given classMethods inherited from class com.levigo.jadice.web.client.commands.AbstractAnnotationCommand
getAnnotationProfile, getAnnotationRenderSettings, getAnnotationTool, loadAnnotationProfile, setAnnotationType, setProfileIdMethods inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
getDocument, getID, getRenderControls, getScope, setScopeMethods inherited from class com.levigo.jadice.web.client.commands.AbstractMouseCommand
clearInjections, isDoubleClicked, setMouseEventMethods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageViewMethods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContextMethods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, execute, getKey, isSelected, setKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.levigo.jadice.web.client.util.command.Command
isAvailable, isAvailable
-
Constructor Details
-
AnnotationVisibilityCommand
public AnnotationVisibilityCommand()
-
-
Method Details
-
execute
protected void execute()Description copied from class:InjectedCommandThis method is called in order to execute the command. It is only called, after the arguments have been validated and injected and only ifInjectedCommand.canExecute()has returnedtrue.- Specified by:
executein classInjectedCommand
-
isSelected
public boolean isSelected()Description copied from class:InjectedCommandReturns the selected state of this command. This is typically used only for commands with a meaningful selection state.- Overrides:
isSelectedin classInjectedCommand- Returns:
- the selected state
-
canExecute
protected boolean canExecute()Description copied from class:AbstractDocumentCommandChecks if this command can be executed.- Overrides:
canExecutein classAbstractAnnotationCommand- Returns:
- true, if
InjectedCommand.execute(java.util.Collection<java.lang.Object>)can be called, false else
-
setTypeNamesFromString
-
setTypeNames
-
setTypeNames
-
toggleAnnotationVisibility
protected void toggleAnnotationVisibility()Toggles visibility of annotations described by given class -
getAnnotationTypes
Tries to retrieve the toggle mode value from command parameters at given parameter index- Returns:
- found mode or
-1, if the parameter is not set or set to an invalid value
-