325 |
private ActionMap actionMap; |
private ActionMap actionMap; |
326 |
private InputVerifier inputVerifier; |
private InputVerifier inputVerifier; |
327 |
|
|
328 |
|
private TransferHandler transferHandler; |
329 |
|
|
330 |
/** |
/** |
331 |
* A lock held during recursive painting; this is used to serialize |
* A lock held during recursive painting; this is used to serialize |
332 |
* access to the double buffer, and also to select the "top level" |
* access to the double buffer, and also to select the "top level" |
864 |
*/ |
*/ |
865 |
protected Graphics getComponentGraphics(Graphics g) |
protected Graphics getComponentGraphics(Graphics g) |
866 |
{ |
{ |
867 |
g.setFont(this.getFont()); |
Graphics g2 = g.create(); |
868 |
g.setColor(this.getForeground()); |
g2.setFont(this.getFont()); |
869 |
return g; |
g2.setColor(this.getForeground()); |
870 |
|
return g2; |
871 |
} |
} |
872 |
|
|
873 |
|
|
2072 |
} |
} |
2073 |
|
|
2074 |
/** |
/** |
2075 |
|
* Get the value of the {@link #transferHandler} property. |
2076 |
|
* |
2077 |
|
* @return The current value of the property |
2078 |
|
* |
2079 |
|
* @see ComponentUI#setTransferHandler |
2080 |
|
*/ |
2081 |
|
|
2082 |
|
public TransferHandler getTransferHandler() |
2083 |
|
{ |
2084 |
|
return transferHandler; |
2085 |
|
} |
2086 |
|
|
2087 |
|
/** |
2088 |
|
* Set the value of the {@link #transferHandler} property. |
2089 |
|
* |
2090 |
|
* @param newHandler The new value of the property |
2091 |
|
* |
2092 |
|
* @see ComponentUI#getTransferHandler |
2093 |
|
*/ |
2094 |
|
|
2095 |
|
void setTransferHandler (TransferHandler newHandler) |
2096 |
|
{ |
2097 |
|
transferHandler = newHandler; |
2098 |
|
} |
2099 |
|
|
2100 |
|
/** |
2101 |
* Set the value of the {@link #opaque} property, revalidate and repaint |
* Set the value of the {@link #opaque} property, revalidate and repaint |
2102 |
* this component. |
* this component. |
2103 |
* |
* |