com.levigo.jadice.swing.commands
Class AbstractPageViewCommand

java.lang.Object
  extended by com.levigo.util.swing.action.injection.InjectedCommand
      extended by com.levigo.util.swing.action.AbstractContextCommand
          extended by com.levigo.jadice.swing.commands.AbstractPageViewCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AbstractDocumentCommand, AbstractSelectionCommand, CloseDemoCommand, OpenDocumentFromFileCommand, OpenViewerFrameCommand, SelectPageLayoutCommand, ShowPDFPermissionsCommand, ToggleCompareCommand, ToggleInfoAreaCommand, ToggleToolActivationPolicyCommand, ToggleToolCommand, ToggleTrayCommand

public abstract class AbstractPageViewCommand
extends AbstractContextCommand

Abstract superclass for commands which are functional just in conjunction with a PageView instance. All of them can use the same accessor and checking methods.

To work properly there must be at least one PageView instance as Context object.


Constructor Summary
AbstractPageViewCommand()
           
 
Method Summary
protected  PageView getPageView()
          Returns the page view.
 void setPageView(PageView pageView)
          Deprecated. Will be used by injection exclusively.
 
Methods inherited from class com.levigo.util.swing.action.AbstractContextCommand
getContext, propagateContextChange, setContext
 
Methods inherited from class com.levigo.util.swing.action.injection.InjectedCommand
canExecute, canExecute, execute, execute, getKey, isAvailable, isSelected, isSelected, setKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPageViewCommand

public AbstractPageViewCommand()
Method Detail

getPageView

protected PageView getPageView()
Returns the page view.

Returns:
page view

setPageView

public void setPageView(PageView pageView)
Deprecated. Will be used by injection exclusively.

Invoked by command injection.

Developers should not invoke this method in any direct way.



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.