|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
wt.clients.tools.transfer.ExportPanel
Export Panel Export objects from the Windchill database into XML neutral format This utility provides the User Interface functionality, and passes off an Export Spec to transfer service.
Nested Class Summary | |
private class |
ExportPanel.DirFilter
Directory File Filter |
(package private) class |
ExportPanel.MyRenderer1
|
(package private) class |
ExportPanel.MyTableModel
|
(package private) class |
ExportPanel.SymAction
|
(package private) class |
ExportPanel.SymPropertyChange
|
(package private) class |
ExportPanel.SymWindow
|
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) static int |
AD_HOC
|
(package private) JButton |
addAttributesButton
|
(package private) ExportPanel.MyTableModel |
attributeModel
|
(package private) JButton |
attributeOkButton
|
(package private) JScrollPane |
attributeScrollPane
|
(package private) JTable |
attributeTable
|
(package private) TableSorter |
attributeTableSorter
|
(package private) JButton |
browseCancelButton
|
(package private) JButton |
browseOkButton
|
(package private) String |
clname_global
|
(package private) GridBagConstraints |
constraints
|
(package private) Cursor |
cursor_default
|
(package private) Cursor |
cursor_wait
|
(package private) ExportPanel.DirFilter |
dirff
|
(package private) ExportAdHocCriteria[] |
eac
|
(package private) JButton |
EAddCriteriaButton
|
(package private) JButton |
EAddObjectButton
|
(package private) JLabel |
EAdvTitleLabel
|
(package private) JLabel |
EBasicTitleLabel
|
(package private) JButton |
EBrowseButton
|
(package private) JButton |
EClearbutton
|
(package private) JTextField |
EDestinanationFileNameField
|
(package private) JLabel |
EDestinationLabel
|
(package private) static int |
EDIT_GRAPH
|
(package private) File |
eFile
|
(package private) ExportPanel.MyTableModel |
EFromModel
|
(package private) TableSorter |
EFromsorter
|
(package private) JTable |
EFromTable
|
(package private) JButton |
EGetDestinationFileButton
|
(package private) JButton |
EGetLogButton
|
(package private) JButton |
EGetRootButton
|
(package private) ExportObjectGraphTemplate[] |
egList
|
(package private) JButton |
ELoadButton
|
(package private) JLabel |
ELogLabel
|
(package private) JTextField |
ELogNameField
|
(package private) JLabel |
EQueryLabel
|
(package private) JButton |
ERemoveAllSelectionButton
|
(package private) JButton |
ERemoveObjectsButton
|
(package private) JButton |
ESaveSet
|
(package private) JTextField |
EScheduledTimeField
|
(package private) JTextField |
ESearchField
|
(package private) JLabel |
ESearchLabel
|
(package private) JLabel |
ESelectedObjectsLabel
|
(package private) JScrollPane |
ESelectedPane
|
(package private) JScrollPane |
ESelectFromTablePane
|
(package private) JTextField |
ESetNameField
|
(package private) JLabel |
ESetNameLabel
|
(package private) ExportPanel.MyTableModel |
EToModel
|
(package private) ExportPanel.MyTableModel |
EToModel2
|
(package private) DefaultMutableTreeNode |
Etop
|
(package private) TableSorter |
ETosorter
|
(package private) JTable |
EToTable
|
(package private) DefaultTreeModel |
EtreeModel1
|
(package private) JScrollPane |
EWTObjectPane
|
(package private) JTree |
EWTObjectTree
|
(package private) int |
export_mode
|
(package private) GridBagLayout |
exportgb
|
(package private) ExportSpec |
exportspec
|
(package private) Font |
f1
|
(package private) Font |
f2
|
(package private) boolean |
fComponentsAdjusted
|
(package private) EditGraphTemplate |
graphframe
|
(package private) ExportCriteriaBuilderFrame |
IEBF
|
(package private) Insets |
in_1
|
(package private) Insets |
in_2
|
(package private) Insets |
in_3
|
(package private) Insets |
in_4
|
(package private) Insets |
in_5
|
(package private) JTextField |
inputText
|
(package private) JDialog |
jd
|
(package private) GridBagLayout |
jdgb
|
(package private) JTextField |
jt
|
(package private) JScrollPane |
leftpane
|
(package private) static boolean |
m_bInstalledDefaultButtonFix
|
(package private) WTQuery |
myQuery
|
(package private) Hashtable |
nameHash
|
private Object |
object
|
(package private) JFileChooser |
openFileDialog1
|
(package private) JButton |
optionsOkButton
|
(package private) Hashtable |
piHash
|
(package private) QueryTemplate |
qt
|
(package private) Hashtable |
qtHash
|
(package private) JFrame |
querypanelframe
|
(package private) boolean |
saved
|
(package private) String |
schemaClassName
|
(package private) int |
stop
|
(package private) int |
view_mode
|
(package private) int |
WS_SIZE
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ExportPanel(int mode,
boolean makeTables)
Constructor |
Method Summary | |
(package private) void |
addAttributesButton_actionPerformed()
add button action chooser |
void |
addClass(String clname)
|
void |
addcrit(int index)
Adds criteria for selected object, brings up instance if ExportCriteriaBuilderFrame. |
void |
addNotify()
|
void |
addObjectForClass(String classname,
ObjectReference a_persis)
|
void |
Addto(TableSorter dlf,
String display_name,
String class_name,
String filter_name,
String last_modified)
Adds a name to a Table alphabetically using binary search |
(package private) void |
attributeOkButton_actionPerformed()
Action performed by the OK button on the attribute select dialog |
(package private) void |
browseCancelButton_actionPerformed()
Action performed by the Cancel button on the output location dialog |
(package private) void |
browseOkButton_actionPerformed()
Action performed by the OK button on the output location dialog |
private void |
buildConstraints(GridBagConstraints gbc,
int x,
int y,
int w,
int h,
double wx,
double wy,
int anchor,
int fill)
Utility method to aid in the creation of gridbag layout |
void |
buildspec()
Build the spec with all new info. |
boolean |
checkIsIn(TableSorter dlf,
String clname)
Determine if the class is already in the table |
void |
checkmark()
|
void |
clear()
Clear the spec related info |
(package private) void |
EAddCriteriaButton_actionPerformed()
Edit criteria button action |
(package private) void |
EAddObjectButton_actionPerformed()
add button action |
(package private) void |
EBrowseButton_actionPerformed()
bring up the output location dialog |
void |
edittemplate(int index)
Adds criteria for selected object, brings up instance if ExportCriteriaBuilderFrame. |
(package private) void |
EEditGraphButton_actionPerformed()
edit graph action |
(package private) void |
EGetDestinationFileButton_actionPerformed_Interaction1()
browse get destinationbutton action1 |
(package private) void |
EGetDestinationFileButton_actionPerformed_Interaction2()
browse get destination button action2 |
(package private) void |
EGetDestinationFileButton_actionPerformed()
browse get destination button action caller |
(package private) void |
EGetLogButton_actionPerformed()
browse for log file button action |
(package private) void |
ERemoveAllSelectionButton_actionPerformed()
Remvoe all button action |
private void |
ERemoveObjectsButton_actionPerformed()
Remove button action |
(package private) void |
ESearchButton_actionPerformed(boolean matchCase,
boolean searchDown)
find dialog search button action |
void |
ESearchTree(DefaultMutableTreeNode wo,
int startindex,
int childcount,
String search_text,
boolean matchCase,
boolean searchDown)
Searches Table and tree for location of search text |
void |
expandnode(DefaultMutableTreeNode node,
String nodename)
Get the file extension of a file |
void |
Exportbutton_actionPerformed_Interaction1()
Does the export |
void |
Exportbutton_actionPerformed()
Does the export |
int |
Exportcheck()
Check to see if the spec is complete for processing |
(package private) void |
ExportPanel_WindowClosing(WindowEvent event)
|
Vector |
getclassinfos(String clname)
|
String |
getDisplayName(String cn)
Find the display name for a class |
int |
getExportMode()
gets the current mode of the export |
private static String |
getExtension(File f)
Get the file extension of a file |
private static String |
getExtension(String s,
String li)
Get the file extension of a file |
(package private) void |
getObject()
bring up the getRootObject dialog for the selected class |
void |
getOptions()
bring up the options dialog |
int |
getRow(TableSorter dlf,
String clname)
Determine the row of a class in the table |
private static void |
installDefaultButtonFix()
|
void |
makeTables()
Make the tree and list view, of all persistable classes |
void |
newSpec()
Create a new spec object |
(package private) void |
optionsOkButton_actionPerformed()
Action performed by the OK button on the options dialog |
void |
saveExportSpec()
Save the current spec |
void |
setExportSpec(ExportSpec ES)
Set an Export Spec |
void |
setMode(int mode)
|
void |
setobjecttreeview()
Set the panel to the Object Tree view |
void |
setTableview()
Set the panel to the table view |
void |
settreeview()
Set the panel to the Tree view |
void |
setVisible(boolean b)
Shows or hides the component depending on the boolean flag b. |
(package private) void |
showErrorMessage(String errmes)
Show an error dialog |
(package private) void |
showInputDialog(String mess)
Show an input dialog, results returned in inputText global textfield |
void |
showmerow(int i)
Scroll table to the row |
(package private) void |
showWithSize(int x,
int y)
Show a dialog with size x,y if it initially comes up with zero size |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
final int WS_SIZE
static final int EDIT_GRAPH
static final int AD_HOC
boolean fComponentsAdjusted
static boolean m_bInstalledDefaultButtonFix
JFrame querypanelframe
JButton EClearbutton
JButton EAddObjectButton
JButton ERemoveObjectsButton
JButton ERemoveAllSelectionButton
JButton EAddCriteriaButton
JButton EGetRootButton
JButton EBrowseButton
JButton EGetLogButton
JButton EGetDestinationFileButton
JButton ELoadButton
JButton ESaveSet
JButton addAttributesButton
JButton attributeOkButton
JButton browseOkButton
JButton browseCancelButton
JButton optionsOkButton
JLabel ESetNameLabel
JLabel EQueryLabel
JLabel EDestinationLabel
JLabel ESelectedObjectsLabel
JLabel ELogLabel
JLabel ESearchLabel
JLabel EBasicTitleLabel
JLabel EAdvTitleLabel
JTextField EScheduledTimeField
JTextField ESetNameField
JTextField EDestinanationFileNameField
JTextField ELogNameField
JTextField jt
JTextField inputText
ExportPanel.MyTableModel EFromModel
ExportPanel.MyTableModel EToModel
ExportPanel.MyTableModel EToModel2
ExportPanel.MyTableModel attributeModel
TableSorter ETosorter
TableSorter EFromsorter
TableSorter attributeTableSorter
JTable EFromTable
JTable EToTable
JTable attributeTable
JTextField ESearchField
DefaultMutableTreeNode Etop
DefaultTreeModel EtreeModel1
JTree EWTObjectTree
JScrollPane ESelectFromTablePane
JScrollPane EWTObjectPane
JScrollPane ESelectedPane
JScrollPane attributeScrollPane
JScrollPane leftpane
GridBagLayout exportgb
GridBagConstraints constraints
GridBagLayout jdgb
Cursor cursor_wait
Cursor cursor_default
ExportPanel.DirFilter dirff
ExportSpec exportspec
Hashtable nameHash
Hashtable qtHash
Hashtable piHash
File eFile
Font f1
Font f2
Insets in_1
Insets in_2
Insets in_3
Insets in_4
Insets in_5
WTQuery myQuery
String schemaClassName
JDialog jd
QueryTemplate qt
ExportAdHocCriteria[] eac
ExportObjectGraphTemplate[] egList
String clname_global
ExportCriteriaBuilderFrame IEBF
EditGraphTemplate graphframe
JFileChooser openFileDialog1
int stop
int export_mode
int view_mode
boolean saved
private Object object
Constructor Detail |
public ExportPanel(int mode, boolean makeTables)
Method Detail |
public void setVisible(boolean b)
b
- if true, show the component; otherwise, hide the component.Component.isVisible()
public void addNotify()
private static void installDefaultButtonFix()
void ExportPanel_WindowClosing(WindowEvent event)
void EGetLogButton_actionPerformed()
void EGetDestinationFileButton_actionPerformed()
void EGetDestinationFileButton_actionPerformed_Interaction1()
void EGetDestinationFileButton_actionPerformed_Interaction2()
void ERemoveAllSelectionButton_actionPerformed()
public void Exportbutton_actionPerformed()
public void Exportbutton_actionPerformed_Interaction1()
void EEditGraphButton_actionPerformed()
void EAddCriteriaButton_actionPerformed()
void getObject()
void EBrowseButton_actionPerformed()
public void getOptions()
void optionsOkButton_actionPerformed()
void ESearchButton_actionPerformed(boolean matchCase, boolean searchDown)
searchDown
- flat to searc up or downvoid EAddObjectButton_actionPerformed()
public void addClass(String clname)
public void addObjectForClass(String classname, ObjectReference a_persis)
private void ERemoveObjectsButton_actionPerformed()
private static String getExtension(File f)
f
- File to get extension of
private static String getExtension(String s, String li)
s
- String representing a file to find the extensionli
- string to denote the break to look for
private void buildConstraints(GridBagConstraints gbc, int x, int y, int w, int h, double wx, double wy, int anchor, int fill)
public boolean checkIsIn(TableSorter dlf, String clname)
dlf
- table to search inclname
- name to search forpublic int getRow(TableSorter dlf, String clname)
dlf
- table to search inclname
- name to search for
public void Addto(TableSorter dlf, String display_name, String class_name, String filter_name, String last_modified)
dlf
- Table to add objectpublic void ESearchTree(DefaultMutableTreeNode wo, int startindex, int childcount, String search_text, boolean matchCase, boolean searchDown)
wo
- node of tree to add children to.startindex
- - index of child to start adding atchildcount
- - total number of children wo hassearch_text
- - text to search for.public void addcrit(int index)
index
- location of selected object in Tablepublic void edittemplate(int index)
index
- location of selected object in Tablepublic void makeTables()
public void expandnode(DefaultMutableTreeNode node, String nodename)
public void setExportSpec(ExportSpec ES)
ES
- the spec to setpublic void saveExportSpec()
public void clear()
public void buildspec()
public void settreeview()
public void setobjecttreeview()
public void setTableview()
public void checkmark()
public int Exportcheck()
public void showmerow(int i)
i
- the row to scroll topublic String getDisplayName(String cn)
cn
- the class name to find the display name frompublic void setMode(int mode)
public int getExportMode()
public Vector getclassinfos(String clname)
void addAttributesButton_actionPerformed()
void attributeOkButton_actionPerformed()
void browseOkButton_actionPerformed()
void browseCancelButton_actionPerformed()
public void newSpec()
void showWithSize(int x, int y)
x
- width if 0y
- height if 0void showErrorMessage(String errmes)
errmes
- the error messagevoid showInputDialog(String mess)
mess
- the input message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |