Class TableColumnSetupWindow
- java.lang.Object
-
- com.biglybt.ui.swt.views.columnsetup.TableColumnSetupWindow
-
- All Implemented Interfaces:
UIUpdatable
public class TableColumnSetupWindow extends java.lang.Object implements UIUpdatable
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
apply
private org.eclipse.swt.widgets.Button
btnApply
private org.eclipse.swt.widgets.Button
btnExport
private static boolean
CAT_BUTTONS
private org.eclipse.swt.widgets.Composite
cCategories
private TableColumnCore[]
columnsCurrentOrder
private TableColumnCore[]
columnsOriginalOrder
private org.eclipse.swt.widgets.Combo
comboFilter
private org.eclipse.swt.widgets.Group
cPickArea
private org.eclipse.swt.widgets.Composite
cTableAvail
private org.eclipse.swt.widgets.Composite
cTableChosen
private org.eclipse.swt.dnd.DragSourceListener
dragSourceListener
private java.lang.Class<?>
forDataSourceType
private java.lang.String
forTableID
private java.util.ArrayList<java.lang.String>
listCats
private java.util.ArrayList<TableColumnCore>
listColumnsNoCat
private TableStructureModificationListener<?>
listener
private java.util.Map<TableColumnCore,java.lang.Boolean>
mapNewVisibility
private org.eclipse.swt.widgets.Button[]
radProficiency
private TableRow
sampleRow
private org.eclipse.swt.widgets.Shell
shell
private static java.lang.String
TABLEID_AVAIL
private static java.lang.String
TABLEID_CHOSEN
private TableViewSWT<TableColumn>
tvAvail
private TableViewSWT<TableColumnCore>
tvChosen
-
Constructor Summary
Constructors Constructor Description TableColumnSetupWindow(java.lang.Class<?> forDataSourceType, java.lang.String _tableID, TableColumnCore selectedColumn, TableRow sampleRow, TableStructureModificationListener<?> _listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
alignChosen(int align)
protected void
apply()
void
chooseColumn(TableColumnCore column)
void
chooseColumn(TableColumnCore column, TableRowCore placeAboveRow, boolean ignoreExisting)
private void
close()
private TableViewSWT<TableColumn>
createTVAvail()
private TableViewSWT<TableColumnCore>
createTVChosen()
protected void
fillAvail()
private void
fillChosen()
TableRow
getSampleRow()
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badboolean
isColumnAdded(TableColumnCore column)
protected void
moveChosenDown()
protected void
moveChosenUp()
void
open()
protected void
removeSelectedChosen()
protected void
setChosenColor(int[] rgb, boolean fg)
private void
setHasChanges(boolean hasChanges)
void
updateUI()
Update your UI!
-
-
-
Field Detail
-
TABLEID_AVAIL
private static final java.lang.String TABLEID_AVAIL
- See Also:
- Constant Field Values
-
TABLEID_CHOSEN
private static final java.lang.String TABLEID_CHOSEN
- See Also:
- Constant Field Values
-
CAT_BUTTONS
private static final boolean CAT_BUTTONS
- See Also:
- Constant Field Values
-
shell
private org.eclipse.swt.widgets.Shell shell
-
tvAvail
private TableViewSWT<TableColumn> tvAvail
-
forTableID
private final java.lang.String forTableID
-
forDataSourceType
private final java.lang.Class<?> forDataSourceType
-
cTableAvail
private org.eclipse.swt.widgets.Composite cTableAvail
-
cCategories
private org.eclipse.swt.widgets.Composite cCategories
-
tvChosen
private TableViewSWT<TableColumnCore> tvChosen
-
cTableChosen
private org.eclipse.swt.widgets.Composite cTableChosen
-
columnsCurrentOrder
private final TableColumnCore[] columnsCurrentOrder
-
columnsOriginalOrder
private final TableColumnCore[] columnsOriginalOrder
-
sampleRow
private final TableRow sampleRow
-
dragSourceListener
private org.eclipse.swt.dnd.DragSourceListener dragSourceListener
-
listener
private final TableStructureModificationListener<?> listener
-
apply
protected boolean apply
-
radProficiency
private org.eclipse.swt.widgets.Button[] radProficiency
-
mapNewVisibility
private java.util.Map<TableColumnCore,java.lang.Boolean> mapNewVisibility
-
listColumnsNoCat
private java.util.ArrayList<TableColumnCore> listColumnsNoCat
-
listCats
private java.util.ArrayList<java.lang.String> listCats
-
comboFilter
private org.eclipse.swt.widgets.Combo comboFilter
-
cPickArea
private org.eclipse.swt.widgets.Group cPickArea
-
btnApply
private org.eclipse.swt.widgets.Button btnApply
-
btnExport
private org.eclipse.swt.widgets.Button btnExport
-
-
Constructor Detail
-
TableColumnSetupWindow
public TableColumnSetupWindow(java.lang.Class<?> forDataSourceType, java.lang.String _tableID, TableColumnCore selectedColumn, TableRow sampleRow, TableStructureModificationListener<?> _listener)
-
-
Method Detail
-
setHasChanges
private void setHasChanges(boolean hasChanges)
-
fillChosen
private void fillChosen()
-
fillAvail
protected void fillAvail()
-
removeSelectedChosen
protected void removeSelectedChosen()
- Since:
- 4.0.0.5
-
moveChosenDown
protected void moveChosenDown()
- Since:
- 4.0.0.5
-
moveChosenUp
protected void moveChosenUp()
- Since:
- 4.0.0.5
-
alignChosen
protected void alignChosen(int align)
-
setChosenColor
protected void setChosenColor(int[] rgb, boolean fg)
-
apply
protected void apply()
- Since:
- 4.0.0.5
-
createTVChosen
private TableViewSWT<TableColumnCore> createTVChosen()
- Returns:
- Since:
- 4.0.0.5
-
createTVAvail
private TableViewSWT<TableColumn> createTVAvail()
- Returns:
- Since:
- 4.0.0.5
-
open
public void open()
-
getUpdateUIName
public java.lang.String getUpdateUIName()
Description copied from interface:UIUpdatable
A name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUIName
in interfaceUIUpdatable
- Returns:
- some name
-
updateUI
public void updateUI()
Description copied from interface:UIUpdatable
Update your UI!- Specified by:
updateUI
in interfaceUIUpdatable
-
getSampleRow
public TableRow getSampleRow()
-
chooseColumn
public void chooseColumn(TableColumnCore column)
-
isColumnAdded
public boolean isColumnAdded(TableColumnCore column)
-
chooseColumn
public void chooseColumn(TableColumnCore column, TableRowCore placeAboveRow, boolean ignoreExisting)
- Parameters:
column
-- Since:
- 4.0.0.5
-
close
private void close()
-
-