public interface IlvPaletteViewer
getComponent()
) that can be added into the
GUI of the application.Modifier and Type | Method and Description |
---|---|
void |
addPaletteViewerListener(PaletteViewerListener l)
Adds a listener to track category or symbol selection in the viewer
|
JComponent |
getComponent()
Returns the Swing component used to display the content of the palette.
|
IlvPalette |
getPalette()
Returns the palette represented in this viewer
|
boolean |
isEditable()
Indicates if the viewer allows edition of palette
|
void |
removePaletteViewerListener(PaletteViewerListener l)
Removes a listener used to track category or symbol selection in the viewer
|
void |
select(IlvPaletteObject object)
Selects an object in the viewer.
|
void |
setEditable(boolean editable)
Indicates if the viewer will allow interactive edition of palette
(for example by drag and drop operation).
|
void |
setPalette(IlvPalette palette)
Sets the palette represented in this viewer.
|
void setPalette(IlvPalette palette)
palette
- The palette to display.IlvPalette getPalette()
JComponent getComponent()
void addPaletteViewerListener(PaletteViewerListener l)
l
- The listener to addvoid removePaletteViewerListener(PaletteViewerListener l)
l
- The listener to removevoid setEditable(boolean editable)
editable
- true
if the viewer must be editable, otherwise false
boolean isEditable()
true
is the viewer is editable, otherwise false
void select(IlvPaletteObject object)
object
- The palette object to select© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.