public class GridColumnGroup extends Item
GridColumn
s whose detail property
is true. A column group in the collapsed state shows GridColumn
s whose summary property
is true.
Constructor and Description |
---|
GridColumnGroup(Grid parent,
int style)
Constructs a new instance of this class given its parent (which must be a Grid) and a style
value describing its behavior and appearance.
|
Modifier and Type | Method and Description |
---|---|
void |
addTreeListener(TreeListener listener)
Adds the listener to the collection of listeners who will
be notified when an item in the receiver is expanded or collapsed
by sending it one of the messages defined in the
TreeListener
interface. |
void |
dispose()
Disposes of the operating system resources associated with
the receiver and all its descendents.
|
<T> T |
getAdapter(java.lang.Class<T> adapter)
Implementation of the
Adaptable interface. |
GridColumn[] |
getColumns()
Returns the columns within this group.
|
boolean |
getExpanded()
Returns true if the receiver is expanded, false otherwise.
|
Font |
getHeaderFont()
Returns the font that the receiver will use to paint textual information
for the header.
|
boolean |
getHeaderWordWrap()
Returns whether or not text is word-wrapped in the header for this column group.
|
Grid |
getParent()
Returns the parent grid.
|
void |
removeTreeListener(TreeListener listener)
Removes the listener from the collection of listeners who will
be notified when items in the receiver are expanded or collapsed.
|
void |
setExpanded(boolean expanded)
Sets the expanded state of the receiver.
|
void |
setHeaderFont(Font font)
Sets the Font to be used when displaying the Header text.
|
void |
setHeaderWordWrap(boolean wordWrap)
Sets whether or not text is word-wrapped in the header for this column group.
|
void |
setImage(Image image)
Sets the receiver's image to the argument, which may be
null indicating that no image should be displayed.
|
void |
setText(java.lang.String text)
Sets the receiver's text.
|
addDisposeListener, addListener, checkSubclass, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public GridColumnGroup(Grid parent, int style)
parent
- the parent tablestyle
- the style of the groupjava.lang.IllegalArgumentException
- SWTException
- public void dispose()
Widget
true
when sent the message isDisposed()
.
Any internal connections between the widgets in the tree will
have been removed to facilitate garbage collection.
NOTE: This method is not called recursively on the descendents
of the receiver. This means that, widget implementers can not
detect when a widget is being disposed of by re-implementing
this method, but should instead listen for the Dispose
event.
public Grid getParent()
SWTException
- public void addTreeListener(TreeListener listener)
TreeListener
interface.listener
- the listener which should be notifiedjava.lang.IllegalArgumentException
- SWTException
- TreeListener
,
removeTreeListener(org.eclipse.swt.events.TreeListener)
public void removeTreeListener(TreeListener listener)
listener
- the listener which should no longer be notifiedjava.lang.IllegalArgumentException
- SWTException
- TreeListener
,
addTreeListener(org.eclipse.swt.events.TreeListener)
public GridColumn[] getColumns()
Note: This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.
SWTException
- public void setExpanded(boolean expanded)
expanded
- the expanded to setSWTException
- public boolean getExpanded()
SWTException
- public Font getHeaderFont()
SWTException
- public void setHeaderFont(Font font)
font
- the new header font (or null)java.lang.IllegalArgumentException
- SWTException
- public void setText(java.lang.String text)
Item
public void setImage(Image image)
Item
public void setHeaderWordWrap(boolean wordWrap)
wordWrap
- Set to true to wrap the text, false otherwisegetHeaderWordWrap()
public boolean getHeaderWordWrap()
GridColumn.setHeaderWordWrap(boolean)
public <T> T getAdapter(java.lang.Class<T> adapter)
Widget
Adaptable
interface.
IMPORTANT: This method is not part of the RWT public API. It is marked public only so that it can be shared within the packages provided by RWT. It should never be accessed from application code.
getAdapter
in interface Adaptable
getAdapter
in class Widget
adapter
- the lookup classnull
if
there is no adapter associated with the given class.
Copyright (c) EclipseSource and others 2002, 2020.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0