|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Notebook
org.gnome.gtk.Notebook
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
public class Notebook
A Notebook widget is a container whose children are pages that can be switched between using tab labels along one edge.
There are many configuration options for a Notebook. Among other things you can choose on which edge the tabs appear, whether, if there are too many tabs to fit th notebook should be made bigger or scrolling arrows added, and whether there will be a popup menu allowing the user to switch between pages.
Constructor Summary | |
---|---|
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. |
|
Notebook(org.gnu.glib.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. |
Method Summary | |
---|---|
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. |
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. |
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. |
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. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
static Notebook |
getNotebook(org.gnu.glib.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. |
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. |
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. |
java.lang.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. |
static org.gnu.glib.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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
void |
setMenuLabel(Widget child,
java.lang.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. |
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. |
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. |
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. |
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. |
void |
setTabLabel(Widget child,
java.lang.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. |
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. |
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. |
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. |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Notebook()
public Notebook(org.gnu.glib.Handle handle)
Method Detail |
---|
public static Notebook getNotebook(org.gnu.glib.Handle handle)
public void appendPage(Widget child, Widget tabLabel)
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page or
null
public void appendPage(Widget child, Widget tabLabel, Widget menuLabel)
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page or
null
menuLabel
- The widget to use as a label for the page-switching menu, if that is
enabled. If null
and tabLabel
is a Label or null
then the menu label will be a newly created label with the same text as the tabLabel
.public void prependPage(Widget child, Widget tabLabel)
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page or
null
public void prependPage(Widget child, Widget tabLabel, Widget menuLabel)
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page or
null
menuLabel
- The widget to use as a label for the page-switching menu, if that is
enabled. If null
and tabLabel
is a Label or null
then the menu label will be a newly created label with the same text as the tabLabel
.public void insertPage(Widget child, Widget tabLabel, int position)
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page or
null
position
- The index (starting at 0) at which to insert the page.public void insertPage(Widget child, Widget tabLabel, Widget menuLabel, int position)
child
- The child widget to add to the newly created page.tabLabel
- The Widget to be used as the label for the page or
null
menuLabel
- The widget to use as a label for the page-switching menu, if that is
enabled. If null
and tabLabel
is a Label or null
then the menu label will be a newly created label with the same text as the tabLabel
.position
- The index (starting at 0) at which to insert the page.public void removePage(int pageNumber)
pageNumber
- The offset (starting with 0) for the page to remove.public int pageNum(Widget child)
child
- The widget to locate.
public void nextPage()
public void prevPage()
public void reorderChild(Widget child, int position)
child
, so that it appears in
position position. If position
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.
child
- The widget to move.position
- The index (starting with 0) to move the child.public void setTabPosition(PositionType pos)
public void setShowTabs(boolean showTabs)
public void setShowBorder(boolean showBorder)
public void setScrollable(boolean scrollable)
public void popupEnable()
public void popupDisable()
public int getCurrentPage()
public java.lang.String getTabLabelText(Widget child)
child
- a widget contained in a page of notebook
public void setCurrentPage(int pageNum)
pageNum
to the current page.
public Widget getPage(int pageNum)
pageNum
.
public void setMenuLabel(Widget child, Widget menuLabel)
child
.
public void setMenuLabel(Widget child, java.lang.String menuText)
child
.
public void setTabLabel(Widget child, Widget tabLabel)
child
.
public void setTabLabel(Widget child, java.lang.String tabText)
child
.
public void setTabLabelPacking(Widget child, boolean expand, boolean fill, PackType packType)
child
.
Box
public int getNumPages()
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Container
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class Container
public void addListener(NotebookListener listener)
listener
- The object that has implemented the NotebookListener interface
that is to receive the notebook events.public void removeListener(NotebookListener listener)
listener
- The object that is to no longer receive notebook events.public static org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |