コード例 #1
0
 private synchronized State getState(JComponent component, Part part) {
   State rv = null;
   Object tmpObject = component.getClientProperty(PartUIClientPropertyKey.getKey(part));
   if (tmpObject instanceof State) {
     rv = (State) tmpObject;
   }
   return rv;
 }
コード例 #2
0
 private synchronized void putState(JComponent component, Part part, State state) {
   component.putClientProperty(PartUIClientPropertyKey.getKey(part), state);
 }