|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrle.core.vm.PlugInBase
rle.simple.ui.InventoryTable
public class InventoryTable
Presents a UI for an Inventory instance.
Nested Class Summary | |
---|---|
class |
InventoryTable.DefaultCellRenderer
|
Field Summary | |
---|---|
protected ItemTableModel |
model
|
protected javax.swing.JTable |
table
|
Fields inherited from class rle.core.vm.PlugInBase |
---|
config, context, parameters |
Constructor Summary | |
---|---|
InventoryTable()
|
Method Summary | |
---|---|
protected javax.swing.JTable |
createTable(ItemTableModel model)
Creates the table for the item container. |
javax.swing.JComponent |
getComponent()
The UI. |
ItemContainer |
getItemContainer()
The item container. |
java.util.List<Item> |
getItems(int row)
Returns a list of the items represented by a given row. |
boolean |
getItemsShown()
Visibility of items. |
ItemTableModel |
getModel()
The model. |
java.lang.String |
getTableName()
User displayable name. |
void |
setItemsShown(boolean b)
Visibility of items. |
void |
setModel(ItemTableModel model)
|
Methods inherited from class rle.core.vm.PlugInBase |
---|
config, getContext, getParameters, paramMap, setConfig, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JTable table
protected ItemTableModel model
Constructor Detail |
---|
public InventoryTable()
Method Detail |
---|
public javax.swing.JComponent getComponent()
getComponent
in interface ItemTable
public ItemTableModel getModel()
getModel
in interface ItemTable
public ItemContainer getItemContainer()
getItemContainer
in interface ItemTable
public java.lang.String getTableName()
getTableName
in interface ItemTable
protected javax.swing.JTable createTable(ItemTableModel model)
public void setModel(ItemTableModel model)
public java.util.List<Item> getItems(int row)
public void setItemsShown(boolean b)
setItemsShown
in interface ItemTable
public boolean getItemsShown()
getItemsShown
in interface ItemTable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |