java-gnome version 4.0.19

org.gnome.gtk
Class Stock

Object
  extended by org.gnome.gtk.Stock

public class Stock
extends Object

Identifiers for the different standard UI elements used to create consistent user interfaces across GNOME applications. Stock items represent commonly-used Menu or Toolbar items such as "Open" and "Quit". A stock item defines properties used when creating new Buttons, MenuItems, etc including the localized user-visible Label, the icon used to identify it the control, and the default keyboard accelerator that triggers it.

GTK comes with a fairly large pre-built set of stock items. You should use them in your programs whenever possible thus ensuring your application will have a look and feel consistent with other GNOME applications. This also aids in discoverability by helping the user identify what a Button does or how to execute a common operation in your application.

Each stock item is identified by a Stock constant that you can pass to constructors of different widgets, such as Buttons. When your application does a common task represented by one of the constants in this class, you should use it to identify that task in your Menus and Buttons.

Please note that this is not a place to get creative. Well known stock icons have a defined behaviour which users can rightfully expect to be consistent. Using these images in non-standard ways will result in a severe usability impact and will cause people to ridicule your program.

In GTK, stock-ids are just plain gchar* strings. We implement these constants here for commodity and type-safety.

WARNING
TODO This class may have to be refactored when [if] we introduce coverage of StockItem.

Since:
4.0.4
Author:
Vreixo Formoso, Andrew Cowie

Field Summary
static Stock ABOUT
          Usually used to identify an Action that shows version, copyright, and authorship information about the application.
static Stock ADD
           
static Stock APPLY
           
static Stock BOLD
           
static Stock CANCEL
           
static Stock CDROM
           
static Stock CLEAR
           
static Stock CLOSE
          Close the current Window or the current document.
static Stock COLOR_PICKER
           
static Stock CONNECT
           
static Stock CONVERT
           
static Stock COPY
           
static Stock CUT
           
static Stock DELETE
           
static Stock DIALOG_AUTHENTICATION
           
static Stock DIALOG_ERROR
           
static Stock DIALOG_INFO
           
static Stock DIALOG_QUESTION
           
static Stock DIALOG_WARNING
           
static Stock DIRECTORY
           
static Stock DISCONNECT
           
static Stock DND
           
static Stock DND_MULTIPLE
           
static Stock EDIT
           
static Stock EXECUTE
           
static Stock FILE
           
static Stock FIND
           
static Stock FIND_AND_REPLACE
           
static Stock FLOPPY
           
static Stock FULLSCREEN
           
static Stock GO_BACK
           
static Stock GO_DOWN
           
static Stock GO_FORWARD
           
static Stock GO_UP
           
static Stock GOTO_BOTTOM
           
static Stock GOTO_FIRST
           
static Stock GOTO_LAST
           
static Stock GOTO_TOP
           
static Stock HARDDISK
           
static Stock HELP
           
static Stock HOME
           
static Stock INDENT
           
static Stock INDEX
           
static Stock INFO
           
static Stock ITALIC
           
static Stock JUMP_TO
           
static Stock JUSTIFY_CENTER
           
static Stock JUSTIFY_FILL
           
static Stock JUSTIFY_LEFT
           
static Stock JUSTIFY_RIGHT
           
static Stock LEAVE_FULLSCREEN
           
static Stock MEDIA_FORWARD
           
static Stock MEDIA_NEXT
           
static Stock MEDIA_PAUSE
           
static Stock MEDIA_PLAY
           
static Stock MEDIA_PREVIOUS
           
static Stock MEDIA_RECORD
           
static Stock MEDIA_REWIND
           
static Stock MEDIA_STOP
           
static Stock MISSING_IMAGE
           
static Stock NETWORK
           
static Stock NEW
           
static Stock NO
           
static Stock OK
           
static Stock OPEN
           
static Stock ORIENTATION_LANDSCAPE
           
static Stock ORIENTATION_PORTRAIT
           
static Stock ORIENTATION_REVERSE_LANDSCAPE
           
static Stock ORIENTATION_REVERSE_PORTRAIT
           
static Stock PASTE
           
static Stock PREFERENCES
           
static Stock PRINT
           
static Stock PRINT_PREVIEW
           
static Stock PROPERTIES
           
static Stock QUIT
          Terminate the application.
static Stock REDO
           
static Stock REFRESH
           
static Stock REMOVE
           
static Stock REVERT_TO_SAVED
           
static Stock SAVE
           
static Stock SAVE_AS
           
static Stock SELECT_ALL
           
static Stock SELECT_COLOR
           
static Stock SELECT_FONT
           
static Stock SORT_ASCENDING
           
static Stock SORT_DESCENDING
           
static Stock SPELL_CHECK
           
static Stock STOP
           
static Stock STRIKETHROUGH
           
static Stock UNDELETE
           
static Stock UNDERLINE
           
static Stock UNDO
           
static Stock UNINDENT
           
static Stock YES
           
static Stock ZOOM_100
           
static Stock ZOOM_FIT
           
static Stock ZOOM_IN
           
static Stock ZOOM_OUT
           
 
Method Summary
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABOUT

public static final Stock ABOUT
Usually used to identify an Action that shows version, copyright, and authorship information about the application.


ADD

public static final Stock ADD

APPLY

public static final Stock APPLY

BOLD

public static final Stock BOLD

CANCEL

public static final Stock CANCEL

CDROM

public static final Stock CDROM

CLEAR

public static final Stock CLEAR

CLOSE

public static final Stock CLOSE
Close the current Window or the current document. While meaning of this does vary a bit between applications depending on their purpose, the one thing close does not mean is to quit the application (unless the program's behaviour is to terminate when the last document is closed - that's ok). For outright exiting a program, see QUIT.


COLOR_PICKER

public static final Stock COLOR_PICKER

CONNECT

public static final Stock CONNECT

CONVERT

public static final Stock CONVERT

COPY

public static final Stock COPY

CUT

public static final Stock CUT

DELETE

public static final Stock DELETE

DIALOG_AUTHENTICATION

public static final Stock DIALOG_AUTHENTICATION

DIALOG_ERROR

public static final Stock DIALOG_ERROR

DIALOG_INFO

public static final Stock DIALOG_INFO

DIALOG_QUESTION

public static final Stock DIALOG_QUESTION

DIALOG_WARNING

public static final Stock DIALOG_WARNING

DIRECTORY

public static final Stock DIRECTORY

DISCONNECT

public static final Stock DISCONNECT

DND

public static final Stock DND

DND_MULTIPLE

public static final Stock DND_MULTIPLE

EDIT

public static final Stock EDIT

EXECUTE

public static final Stock EXECUTE

FILE

public static final Stock FILE

FIND

public static final Stock FIND

FIND_AND_REPLACE

public static final Stock FIND_AND_REPLACE

FLOPPY

public static final Stock FLOPPY

FULLSCREEN

public static final Stock FULLSCREEN

GO_BACK

public static final Stock GO_BACK

GO_DOWN

public static final Stock GO_DOWN

GO_FORWARD

public static final Stock GO_FORWARD

GO_UP

public static final Stock GO_UP

GOTO_BOTTOM

public static final Stock GOTO_BOTTOM

GOTO_FIRST

public static final Stock GOTO_FIRST

GOTO_LAST

public static final Stock GOTO_LAST

GOTO_TOP

public static final Stock GOTO_TOP

HARDDISK

public static final Stock HARDDISK

HELP

public static final Stock HELP

HOME

public static final Stock HOME

INDENT

public static final Stock INDENT

INDEX

public static final Stock INDEX

INFO

public static final Stock INFO

ITALIC

public static final Stock ITALIC

JUMP_TO

public static final Stock JUMP_TO

JUSTIFY_CENTER

public static final Stock JUSTIFY_CENTER

JUSTIFY_FILL

public static final Stock JUSTIFY_FILL

JUSTIFY_LEFT

public static final Stock JUSTIFY_LEFT

JUSTIFY_RIGHT

public static final Stock JUSTIFY_RIGHT

LEAVE_FULLSCREEN

public static final Stock LEAVE_FULLSCREEN

MEDIA_FORWARD

public static final Stock MEDIA_FORWARD

MEDIA_NEXT

public static final Stock MEDIA_NEXT

MEDIA_PAUSE

public static final Stock MEDIA_PAUSE

MEDIA_PLAY

public static final Stock MEDIA_PLAY

MEDIA_PREVIOUS

public static final Stock MEDIA_PREVIOUS

MEDIA_RECORD

public static final Stock MEDIA_RECORD

MEDIA_REWIND

public static final Stock MEDIA_REWIND

MEDIA_STOP

public static final Stock MEDIA_STOP

MISSING_IMAGE

public static final Stock MISSING_IMAGE

NETWORK

public static final Stock NETWORK

NEW

public static final Stock NEW

NO

public static final Stock NO

OK

public static final Stock OK

OPEN

public static final Stock OPEN

ORIENTATION_LANDSCAPE

public static final Stock ORIENTATION_LANDSCAPE

ORIENTATION_PORTRAIT

public static final Stock ORIENTATION_PORTRAIT

ORIENTATION_REVERSE_LANDSCAPE

public static final Stock ORIENTATION_REVERSE_LANDSCAPE

ORIENTATION_REVERSE_PORTRAIT

public static final Stock ORIENTATION_REVERSE_PORTRAIT

PASTE

public static final Stock PASTE

PREFERENCES

public static final Stock PREFERENCES

PRINT

public static final Stock PRINT

PRINT_PREVIEW

public static final Stock PRINT_PREVIEW

PROPERTIES

public static final Stock PROPERTIES

QUIT

public static final Stock QUIT
Terminate the application. If you just want to close a single document Window, then use CLOSE.

There's no EXIT, in case you were wondering.


REDO

public static final Stock REDO

REFRESH

public static final Stock REFRESH

REMOVE

public static final Stock REMOVE

REVERT_TO_SAVED

public static final Stock REVERT_TO_SAVED

SAVE

public static final Stock SAVE

SAVE_AS

public static final Stock SAVE_AS

SELECT_ALL

public static final Stock SELECT_ALL

SELECT_COLOR

public static final Stock SELECT_COLOR

SELECT_FONT

public static final Stock SELECT_FONT

SORT_ASCENDING

public static final Stock SORT_ASCENDING

SORT_DESCENDING

public static final Stock SORT_DESCENDING

SPELL_CHECK

public static final Stock SPELL_CHECK

STOP

public static final Stock STOP

STRIKETHROUGH

public static final Stock STRIKETHROUGH

UNDELETE

public static final Stock UNDELETE

UNDERLINE

public static final Stock UNDERLINE

UNDO

public static final Stock UNDO

UNINDENT

public static final Stock UNINDENT

YES

public static final Stock YES

ZOOM_100

public static final Stock ZOOM_100

ZOOM_FIT

public static final Stock ZOOM_FIT

ZOOM_IN

public static final Stock ZOOM_IN

ZOOM_OUT

public static final Stock ZOOM_OUT


java-gnome