コード例 #1
0
 @Override
 public void unsetHovering(Widget widget) {
   if (widget != null) {
     widget.setBackground(scene.getLookFeel().getBackground(ObjectState.createNormal()));
     widget.setForeground(new Color(0, 0, 0, 0));
     CustomPortInteractor port = (CustomPortInteractor) widget;
     port.setOver(false);
   }
 }
コード例 #2
0
 @Override
 public void setHovering(Widget widget) {
   if (widget != null) {
     ObjectState state = ObjectState.createNormal().deriveSelected(true);
     widget.setBackground(scene.getLookFeel().getBackground(state));
     widget.setForeground(Color.yellow);
     CustomPortInteractor port = (CustomPortInteractor) widget;
     port.setOver(true);
   }
 }