Java 类com.intellij.openapi.ui.NullableComponent 实例源码

项目:intellij-ce-playground    文件:MouseDragHelper.java   
private boolean canStartDragging(MouseEvent me) {
  if (me.getButton() != MouseEvent.BUTTON1) return false;
  if (!myDragComponent.isShowing()) return false;

  Component component = me.getComponent();
  if (NullableComponent.Check.isNullOrHidden(component)) return false;
  final Point dragComponentPoint = SwingUtilities.convertPoint(me.getComponent(), me.getPoint(), myDragComponent);
  return canStartDragging(myDragComponent, dragComponentPoint);
}
项目:intellij-ce-playground    文件:OptionsEditor.java   
@Override
public boolean isNull() {
  final boolean superNull = super.isNull();
  if (superNull) return superNull;

  if (myMaster == null) {
    return NullableComponent.Check.isNull(mySimpleContent);
  } else {
    return NullableComponent.Check.isNull(myMaster);
  }
}
项目:tools-idea    文件:MouseDragHelper.java   
private boolean canStartDragging(MouseEvent me) {
  if (me.getButton() != MouseEvent.BUTTON1) return false;
  if (!myDragComponent.isShowing()) return false;

  Component component = me.getComponent();
  if (NullableComponent.Check.isNullOrHidden(component)) return false;
  final Point dragComponentPoint = SwingUtilities.convertPoint(me.getComponent(), me.getPoint(), myDragComponent);
  return canStartDragging(myDragComponent, dragComponentPoint);
}
项目:consulo    文件:MouseDragHelper.java   
private boolean canStartDragging(MouseEvent me) {
  if (me.getButton() != MouseEvent.BUTTON1) return false;
  if (!myDragComponent.isShowing()) return false;

  Component component = me.getComponent();
  if (NullableComponent.Check.isNullOrHidden(component)) return false;
  final Point dragComponentPoint = SwingUtilities.convertPoint(me.getComponent(), me.getPoint(), myDragComponent);
  return canStartDragging(myDragComponent, dragComponentPoint);
}
项目:consulo    文件:OptionsEditor.java   
@Override
public boolean isNull() {
  final boolean superNull = super.isNull();
  if (superNull) return superNull;
  return NullableComponent.Check.isNull(mySimpleContent);
}