Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Notebook
public class Notebook
extends Container
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
int |
|
Class |
|
EventType |
|
static Notebook |
|
int |
|
Widget |
|
String |
|
static Type |
|
void |
|
void |
|
void |
|
int | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public Notebook()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new Notebook object with no pages.
public Notebook(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new Notebook from a handle to a native resource.
public void addListener(NotebookListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to receive event notification.
- Parameters:
listener
- The object that has implemented the NotebookListener interface that is to receive the notebook events.
public void appendPage(Widget child, Widget tabLabel)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Append a page to the Notebook.
- Parameters:
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page ornull
public void appendPage(Widget child, Widget tabLabel, Widget menuLabel)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Append a page to the Notebook.
- Parameters:
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page ornull
menuLabel
- The widget to use as a label for the page-switching menu, if that is enabled. Ifnull
andtabLabel
is a Label ornull
then the menu label will be a newly created label with the same text as thetabLabel
.
public int getCurrentPage()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the page number of the current page. If the notebook has no pages, then -1 will be returned.
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Container
public EventType getEventType(String signal)
- Overrides:
- getEventType in interface Container
public static Notebook getNotebook(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.
public int getNumPages()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the number of pages currently on the notebook.
public Widget getPage(int pageNum)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the child Widget contained int he page numberpageNum
.
public String getTabLabelText(Widget child)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieves the text of the tab label for the page containing child.
- Parameters:
child
- a widget contained in a page of notebook
- Returns:
- value: the text of the tab label, or NULL if the tab label widget is not a Label.
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public void insertPage(Widget child, Widget tabLabel, int position)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Insert a page into the Notebook at the given position.
- Parameters:
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page ornull
position
- The index (starting at 0) at which to insert the page.
public void insertPage(Widget child, Widget tabLabel, Widget menuLabel, int position)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Insert a page into the Notebook at the given position.
- Parameters:
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page ornull
menuLabel
- The widget to use as a label for the page-switching menu, if that is enabled. Ifnull
andtabLabel
is a Label ornull
then the menu label will be a newly created label with the same text as thetabLabel
.position
- The index (starting at 0) at which to insert the page.
public void nextPage()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Switches to the next page. Nothing happens if the current page is the last page.
public int pageNum(Widget child)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Finds the index of the page which contains the given child.
- Parameters:
child
- The widget to locate.
- Returns:
- The index of the page which contains the given child.
public void popupDisable()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
disables the popup menu.
public void popupEnable()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Enables the popup menu.
public void prependPage(Widget child, Widget tabLabel)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Prepend a page to the Notebook.
- Parameters:
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page ornull
public void prependPage(Widget child, Widget tabLabel, Widget menuLabel)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Prepend a page to the Notebook.
- Parameters:
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page ornull
menuLabel
- The widget to use as a label for the page-switching menu, if that is enabled. Ifnull
andtabLabel
is a Label ornull
then the menu label will be a newly created label with the same text as thetabLabel
.
public void prevPage()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Switches to the previous page. Nothing happens if the current page is the first page.
public void removeListener(NotebookListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Unregister an object that was receiving notebook event notification.
- Parameters:
listener
- The object that is to no longer receive notebook events.
public void removePage(int pageNumber)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a page fro the Notegook given its index in the notebook.
- Parameters:
pageNumber
- The offset (starting with 0) for the page to remove.
public void reorderChild(Widget child, int position)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Reorders the page containingchild
, so that it appears in position position. Ifposition
is greater than or equal to the number of children in the list or negative,child
will be moved to the end of the list.
- Parameters:
child
- The widget to move.position
- The index (starting with 0) to move the child.
public void setCurrentPage(int pageNum)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
sets the page at offsetpageNum
to the current page.
public void setMenuLabel(Widget child, String menuText)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Creates a new label and sets it as the menu label ofchild
.
public void setMenuLabel(Widget child, Widget menuLabel)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the menu label for the page containingchild
.
public void setScrollable(boolean scrollable)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether the tab label area will have arrows for scrolling if there are too many tabs to fit in the area.
public void setShowBorder(boolean showBorder)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether a bevel will be drawn around the notebook pages.
public void setShowTabs(boolean showTabs)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
sets whether to show the tabs for the notebook or not.
public void setTabLabel(Widget child, String tabText)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Creates a new label and sets it as the label of the page containingchild
.
public void setTabLabel(Widget child, Widget tabLabel)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the tab label forchild
.
public void setTabLabelPacking(Widget child, boolean expand, boolean fill, PackType packType)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the packing parameters for the tab label of the page containingchild
.
- See Also:
Box
public void setTabPosition(PositionType pos)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the edge at which the tabs for switching pages in the Notebook are drawn.