|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.net.ResourceLocatorInterfaceCustomizerPanel
public class ResourceLocatorInterfaceCustomizerPanel
The ResourceLocatorInterfaceCustomizerPanel is a panel to be displayed in an instance of another object's customizer. It provides the interface which allow the user to edit a com.sas.new.ResourceLocatorInterface object. The ResourceLocatorInterfaceCustomizerPanel provides the user with a way of locating resources. The panel can be customized to fit the user's needs.
| Field Summary | |
|---|---|
static int |
ABSOLUTE
|
static int |
APPLET_RELATIVE
|
static int |
CLASS_RELATIVE
|
static int |
DOCUMENT_RELATIVE
|
javax.swing.JPanel |
firstColumn
|
protected int |
pathTypeOptions
|
protected boolean |
promptForCopy
|
protected boolean |
promptForReplace
|
static java.lang.String |
RB_KEY
|
javax.swing.JPanel |
secondColumn
|
protected boolean |
shouldCopy
|
static int |
URL
|
static int |
WEBAF
|
static int |
WEBAFDEV
|
static int |
WEBEIS
|
| Fields inherited from class com.sas.swing.visuals.SwingCustomizerPanel |
|---|
bean, tabTitle |
| Fields inherited from interface com.sas.swing.visuals.util.LayoutConstants |
|---|
DOTS_BUTTON_INSETS, EMPTY_INSETS, HGAP, HMARGIN, INDENTED_BORDER, TAB_BORDER, TEXTFIELD_INSETS, VGAP, VMARGIN |
| Constructor Summary | |
|---|---|
ResourceLocatorInterfaceCustomizerPanel()
|
|
ResourceLocatorInterfaceCustomizerPanel(java.lang.String tabName)
|
|
| Method Summary | |||
|---|---|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
||
void |
addLinks()
|
||
protected void |
browseAction(javax.swing.JTextField comp)
|
||
void |
customizerClosing()
customizerClosing() is called when the customizer for a component is closed. |
||
void |
focusGained(java.awt.event.FocusEvent e)
|
||
void |
focusLost(java.awt.event.FocusEvent e)
|
||
javax.swing.filechooser.FileFilter |
getFileDialogFilter()
Returns the |
java.awt.Container |
getFirstColumn()
Returns the column that contains all the labels. |
int |
getPathTypeOptions()
Gets the options that are displayed in the path type JComboBox. |
||
com.sas.net.ResourceLocatorInterface |
getResourceLocatorInterface()
Returns the instance of ResourceLocatorInterface that is created from this panel. |
||
java.awt.Container |
getSecondColumn()
Returns the column that contains all the fields. |
||
protected java.awt.Container |
makeSettingsContainer()
|
||
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handle PropertyChangeEvents from the PropertyEditorHosts. |
||
void |
setDefaultValues()
|
||
void |
setFileDialogFilter(javax.swing.filechooser.FileFilter newValue)
Sets the |
void |
setObject(java.lang.Object bean)
Sets the Object being customized. |
void |
setPathTypeLabel(java.lang.String newValue)
Sets the label for the path type JComboBox. |
||
void |
setPathTypeOptions(int mode)
Sets the options that are displayed in the path type JComboBox. |
||
void |
setPromptForCopy(boolean newValue)
Sets whether the ResourceLocatorInterfaceCustomizerPanel should prompt the user to notify them that it is copying a resource from one directory to another. |
||
void |
setPromptForReplace(boolean newValue)
Sets whether the ResourceLocatorInterfaceCustomizerPanel should prompt the user to notify them that it is replacing a resource in their project directory. |
||
void |
setResourcePathLabel(java.lang.String newValue)
Sets the label for the resource path JTextField. |
||
void |
setShouldCopy(boolean newValue)
Sets whether the ResourceLocatorInterfaceCustomizerPanel should copy the resource to the project directory if the path is suppose to be relative but is not. |
||
protected boolean |
sourceChange(java.lang.String src)
|
||
protected boolean |
sourceChange(java.lang.String src,
java.lang.String typeDesired)
|
||
| Methods inherited from class com.sas.swing.visuals.SwingCustomizerPanel |
|---|
getObject, getTabTitle, setTabTitle |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
public javax.swing.JPanel firstColumn
public javax.swing.JPanel secondColumn
protected boolean shouldCopy
protected boolean promptForCopy
protected boolean promptForReplace
protected int pathTypeOptions
public static final int APPLET_RELATIVE
public static final int URL
public static final int ABSOLUTE
public static final int DOCUMENT_RELATIVE
public static final int CLASS_RELATIVE
public static final int WEBAF
public static final int WEBEIS
public static final int WEBAFDEV
| Constructor Detail |
|---|
public ResourceLocatorInterfaceCustomizerPanel(java.lang.String tabName)
public ResourceLocatorInterfaceCustomizerPanel()
| Method Detail |
|---|
public void setPathTypeOptions(int mode)
ResourceLocatorInterfaceCustomizerPanel panel = new ResourceLocatorInterfaceCustomizerPanel(); panel.setPathTypeOptions(panel.URL | panel.DOCUMENT_RELATIVE | panel.ABSOLUTE);
mode - the options the user wants to appear in the path type JComboBoxgetPathTypeOptions()public int getPathTypeOptions()
setPathTypeOptions(int)protected void browseAction(javax.swing.JTextField comp)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerprotected boolean sourceChange(java.lang.String src)
protected boolean sourceChange(java.lang.String src,
java.lang.String typeDesired)
public void setDefaultValues()
protected java.awt.Container makeSettingsContainer()
public void setPathTypeLabel(java.lang.String newValue)
newValue - the new label name for the path typepublic void setResourcePathLabel(java.lang.String newValue)
newValue - the new label name for the resource pathpublic java.awt.Container getFirstColumn()
AutoSizingGridLayoutpublic java.awt.Container getSecondColumn()
AutoSizingGridLayoutpublic com.sas.net.ResourceLocatorInterface getResourceLocatorInterface()
public void setFileDialogFilter(javax.swing.filechooser.FileFilter newValue)
FileFilter on the JFileChooser used
in the file dialog for the URL, AbsolutePath, or Relative to Applet or Document. This DOES NOT
change the FileFilter on the dialog that appears when the user is selecting a context as
that has to be either a directory or a .zip or .jar file.
newValue - the new FileFilter to use on the file dialoggetFileDialogFilter()public javax.swing.filechooser.FileFilter getFileDialogFilter()
FileFilter used on the file dialog for
URL, Absolute, Relative to Applet, and Relative to Document path types.
setFileDialogFilter(FileFilter)public void setPromptForCopy(boolean newValue)
newValue - whether to prompt to copy the file or notsetPromptForReplace(boolean),
setShouldCopy(boolean),
ResourceCopierpublic void setPromptForReplace(boolean newValue)
newValue - whether to prompt to copy the file or notsetPromptForCopy(boolean),
setShouldCopy(boolean),
ResourceCopierpublic void setShouldCopy(boolean newValue)
whether - to copy a resource that does not have a relative path but is suppose to have one,
default is truesetPromptForCopy(boolean),
setPromptForReplace(boolean),
ResourceCopierpublic void setObject(java.lang.Object bean)
SwingCustomizerPanel
setObject in interface java.beans.CustomizersetObject in class SwingCustomizerPanelbean - the Object being customized.Customizer.setObject(java.lang.Object)public void addLinks()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void customizerClosing()
SwingCustomizerPanelcustomizerClosing() should "unhook" the bean from the customizer by removing any event listeners the panel added to the bean.
Subclasses should call super in case we add some functionality to this method in the future.
customizerClosing in interface com.sas.beans.CustomizerClosingInterfacecustomizerClosing in class SwingCustomizerPanel
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||