|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.gui.DefaultActions
public class DefaultActions
A collection of static methods that create useful default actions.
Field Summary | |
---|---|
static String |
CLOSE
|
static String |
COPY
|
static String |
CUT
|
static String |
EXIT
|
static String |
NEW
|
static String |
OPEN
|
static String |
PASTE
|
static String |
PRINT
|
static String |
QUIT
|
static String |
SAVE
|
static String |
SAVE_AS
|
Constructor Summary | |
---|---|
DefaultActions()
|
Method Summary | |
---|---|
static Action |
closeAction(Application app)
Create an action named "Close" that closes the current document. |
static Action |
copyAction(Application app)
Create an action named "Copy" that copies the current selection from the current document and places it into the application's clipboard. |
static Action |
cutAction(Application app)
Create an action named "Cut" that cuts the current selection from the current document and places it into the application's clipboard. |
static Action |
exitAction(Application app)
Create an action named "Exit" that tries to close all the open documents, and if all of them are closed successfully, then exits Java. |
static Action |
newAction(Application app)
Create an action named "New" that creates a new document. |
static Action |
openAction(Application app)
Create an action named "Open" that opens a new document. |
static Action |
pasteAction(Application app)
Create an action named "Paste" that pastes the current selection from the current document and places it into the application's clipboard. |
static Action |
printAction(Application app)
Create an action named "Print" that prints the current document to the printer, if it implements the Printable or Pageable interface. |
static Action |
quitAction(Application app)
Deprecated. The standard windows term is "Exit," so use exitAction() |
static Action |
saveAction(Application app)
Create an action named "Save" that saves the current document. |
static Action |
saveAsAction(Application app)
Create an action named "Save As" that saves the current document to a different location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COPY
public static final String CLOSE
public static final String CUT
public static final String EXIT
public static final String NEW
public static final String OPEN
public static final String PASTE
public static final String PRINT
public static final String QUIT
public static final String SAVE
public static final String SAVE_AS
Constructor Detail |
---|
public DefaultActions()
Method Detail |
---|
public static Action copyAction(Application app)
public static Action closeAction(Application app)
public static Action cutAction(Application app)
public static Action exitAction(Application app)
public static Action newAction(Application app)
public static Action openAction(Application app)
public static Action printAction(Application app)
public static Action pasteAction(Application app)
public static Action quitAction(Application app)
public static Action saveAction(Application app)
public static Action saveAsAction(Application app)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |