net.yura.mobile.gui.components
Class FileChooser.GridList

java.lang.Object
  extended by net.yura.mobile.gui.components.Component
      extended by net.yura.mobile.gui.components.Panel
          extended by net.yura.mobile.gui.components.Table
              extended by net.yura.mobile.gui.components.FileChooser.GridList
Enclosing class:
FileChooser

public static class FileChooser.GridList
extends Table

Takes care of Picture Selection screen flow.

Author:
Yura Mamyrin

Field Summary
 
Fields inherited from class net.yura.mobile.gui.components.Table
cellEditor, columnIdentifiers, dataVector, editingColumn, editingRow, editorComp, rowHeight
 
Fields inherited from class net.yura.mobile.gui.components.Component
background, empty, FOCUS_GAINED, FOCUS_LOST, focusable, foreground, height, parent, posX, posY, preferredHeight, preferredWidth, state, theme, width
 
Constructor Summary
FileChooser.GridList(int cellSize)
           
 
Method Summary
 Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getDefaultName()
           
 Object getElementAt(int index)
           
 Vector getItems()
           
 int getRowCount()
           
 int getSelectedIndex()
           
 Object getSelectedValue()
           
 int getSize()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setElementAt(Object object, int index)
           
 void setListData(Vector files)
           
 void setRowHeight(int h)
          Sets the height for row to rowHeight, revalidates, and repaints.
 void setSelectedIndex(int a)
           
 void setSize(int w, int h)
          sets the new size and revaliates the window
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 void workoutMinimumSize()
          works out the current size of this panel (SHOULD NOT BE CALLED OUTSIDE THE FRAMEWORK)
 
Methods inherited from class net.yura.mobile.gui.components.Table
breakOutAction, doLayout, editCellAt, focusGained, getCellEditor, getCellRenderer, getCellX, getCellY, getColumnName, getColumnWidth, getIntercellSpacing, getRowHeight, getSelectedColumn, getSelectedRow, getToolTipLocationX, getToolTipLocationY, getToolTipText, paintComponent, prepareRenderer, processKeyEvent, processMouseEvent, removeEditor, setColumnWidth, setDefaultEditor, setDefaultRenderer, setIntercellSpacing, setSelectedCell, workoutHeight
 
Methods inherited from class net.yura.mobile.gui.components.Panel
addImpl, findMneonicButton, getComponentAt, getComponentCount, getComponents, getConstraints, getLayout, paint, paintChildren, remove, remove, removeAll, setLayout, toString, validate
 
Methods inherited from class net.yura.mobile.gui.components.Component
add, add, add, addFocusListener, animate, clip, consumesMotionEvents, focusLost, getBackground, getBorder, getCurrentState, getDesktopPane, getFocusListeners, getForeground, getHeight, getHeightWithBorder, getInsets, getName, getParent, getPreferredHeight, getPreferredWidth, getState, getValue, getWidth, getWidthWithBorder, getWindow, getX, getXOnScreen, getXWithBorder, getY, getYOnScreen, getYWithBorder, insert, insert, isComponentVisible, isFocusable, isFocusOwner, isOpaque, isRectVisible, isShowing, isVisible, makeVisible, paintBorder, processMultitouchEvent, removeFocusListener, removeParent, repaint, requestFocusInWindow, revalidate, scrollRectToVisible, scrollUpDown, setBackground, setBorder, setBounds, setBoundsWithBorder, setFocusable, setForeground, setLocation, setName, setPreferredSize, setState, setToolTipText, setupState, setValue, setVisible, transferFocus, updateUI, wait, workoutSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileChooser.GridList

public FileChooser.GridList(int cellSize)
Method Detail

getColumnClass

public Class getColumnClass(int columnIndex)
Overrides:
getColumnClass in class Table
Returns:
the class of the column
See Also:
TableModel.getColumnClass

getColumnCount

public int getColumnCount()
Overrides:
getColumnCount in class Table
Returns:
the number of columns
See Also:
TableModel.getColumnCount

getDefaultName

public String getDefaultName()
Overrides:
getDefaultName in class Table

getElementAt

public Object getElementAt(int index)
Parameters:
index -
Returns:
the element
See Also:
List.getElementAt, ListModel.getElementAt

getItems

public Vector getItems()
See Also:
List.getItems()

getRowCount

public int getRowCount()
Overrides:
getRowCount in class Table
Returns:
the number of rows
See Also:
TableModel.getRowCount

getSelectedIndex

public int getSelectedIndex()
See Also:
List.getSelectedIndex()

getSelectedValue

public Object getSelectedValue()
See Also:
List.getSelectedValue()

getSize

public int getSize()
Returns:
the size of the list
See Also:
List.getSize, ListModel.getSize

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Overrides:
getValueAt in class Table
Returns:
the value
See Also:
TableModel.getValueAt

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Overrides:
isCellEditable in class Table
Returns:
true if the cell is editable
See Also:
TableModel.isCellEditable

setElementAt

public void setElementAt(Object object,
                         int index)
Parameters:
index -
See Also:
List.setElementAt, ListModel.setElementAt

setListData

public void setListData(Vector files)
See Also:
List.setListData(java.util.Vector)

setRowHeight

public void setRowHeight(int h)
Description copied from class: Table
Sets the height for row to rowHeight, revalidates, and repaints.

Overrides:
setRowHeight in class Table
See Also:
JTable.setRowHeight

setSelectedIndex

public void setSelectedIndex(int a)
See Also:
List.setSelectedIndex(int)

setSize

public void setSize(int w,
                    int h)
Description copied from class: Panel
sets the new size and revaliates the window

Overrides:
setSize in class Panel
Parameters:
w - new Width
h - new Height
See Also:
Component.setSize

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
Overrides:
setValueAt in class Table
See Also:
TableModel.setValueAt

workoutMinimumSize

public void workoutMinimumSize()
Description copied from class: Panel
works out the current size of this panel (SHOULD NOT BE CALLED OUTSIDE THE FRAMEWORK)

Overrides:
workoutMinimumSize in class Table
See Also:
JComponent.getMinimumSize