|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.levigo.util.swing.action.injection.InjectedCommand
com.levigo.jadice.swing.thumbnailview.ThumbnailResizeCommand
public class ThumbnailResizeCommand
A command used to increase or decrease the thumbnail size.
| Constructor Summary | |
|---|---|
ThumbnailResizeCommand()
|
|
| Method Summary | |
|---|---|
protected boolean |
canExecute()
Subclasses may override this method to perform argument validation beyond the validation that happens automatically during the injection phase. |
protected void |
execute()
This method is called in order to execute the command. |
float |
getRatio()
|
String |
getWidths()
|
boolean |
isIncrease()
|
void |
setIncrease(boolean increase)
|
void |
setRatio(float ratio)
|
void |
setView(ThumbnailView view)
Deprecated. Will be used by injection exclusively. |
void |
setWidths(String valuesEncoded)
|
| Methods inherited from class com.levigo.util.swing.action.injection.InjectedCommand |
|---|
canExecute, 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 |
|---|
public ThumbnailResizeCommand()
| Method Detail |
|---|
public void setView(ThumbnailView view)
Developers should not invoke this method in any direct way.
protected boolean canExecute()
InjectedCommandArgument annotations and the
arguments have been injected.
canExecute in class InjectedCommandtrue if the command can/may be executed in the current context,
false otherwise.protected void execute()
InjectedCommandInjectedCommand.canExecute() has returned
true.
execute in class InjectedCommandpublic boolean isIncrease()
public void setIncrease(boolean increase)
public String getWidths()
public void setWidths(String valuesEncoded)
public float getRatio()
public void setRatio(float ratio)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||