1 |
/* AbstractColorChooserPanel.java -- |
/* AbstractColorChooserPanel.java -- |
2 |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
64 |
*/ |
*/ |
65 |
public AbstractColorChooserPanel() |
public AbstractColorChooserPanel() |
66 |
{ |
{ |
67 |
} // AbstractColorChooserPanel() |
// Nothing to do here. |
68 |
|
} |
69 |
|
|
70 |
/** |
/** |
71 |
* This method returns the name displayed in the tab for this chooser panel. |
* This method returns the name displayed in the tab for this chooser panel. |
75 |
public abstract String getDisplayName(); |
public abstract String getDisplayName(); |
76 |
|
|
77 |
/** |
/** |
78 |
|
* Returns the key code for the mnemonic for this panel. This method returns |
79 |
|
* zero to indicate no mnemonic, subclasses can override this. |
80 |
|
* |
81 |
|
* @return <code>0</code>, to indicate no mnemonic key code. |
82 |
|
* |
83 |
|
* @see #getDisplayedMnemonicIndex() |
84 |
|
* @since 1.4 |
85 |
|
*/ |
86 |
|
public int getMnemonic() |
87 |
|
{ |
88 |
|
return 0; |
89 |
|
} |
90 |
|
|
91 |
|
/** |
92 |
|
* Returns the index of the character in the display name that is the |
93 |
|
* mnemonic. This method returns <code>-1</code> to indicate no mnemonic, |
94 |
|
* subclasses can override. |
95 |
|
* |
96 |
|
* @return <code>-1</code>, to indicate no mnemonic. |
97 |
|
* |
98 |
|
* @see #getDisplayName() |
99 |
|
* @see #getMnemonic() |
100 |
|
* @since 1.4 |
101 |
|
*/ |
102 |
|
public int getDisplayedMnemonicIndex() |
103 |
|
{ |
104 |
|
return -1; |
105 |
|
} |
106 |
|
|
107 |
|
/** |
108 |
* This method updates the chooser panel when the JColorChooser's color has |
* This method updates the chooser panel when the JColorChooser's color has |
109 |
* changed. |
* changed. |
110 |
*/ |
*/ |