本文整理了Java中javax.swing.JToolBar.isEnabled()
方法的一些代码示例,展示了JToolBar.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.isEnabled()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:isEnabled
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void mousePressed(MouseEvent e)
{
if (!toolBar.isEnabled())
{
return;
}
isDragging= false;
}
public void mouseReleased(MouseEvent e)
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = ENABLED_JSDOC)
@Override
public boolean getEnabled() {
return super.isEnabled();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void mouseDragged(MouseEvent e)
{
if (!toolBar.isEnabled())
{
return;
}
isDragging= true;
Point position= e.getPoint();
if (origin == null)
origin= e.getComponent().getLocationOnScreen();
dragTo(position, origin);
}
public void mouseMoved(MouseEvent e)
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
@Override
public void mouseDragged(MouseEvent evt) {
if (!tb.isEnabled()) {
return;
}
if (!isArmed) {
return;
}
isDragging = true;
Point position = evt.getPoint();
if (origin == null) {
origin = evt.getComponent().getLocationOnScreen();
}
dragTo(position, origin);
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
@Override
public void mouseReleased(MouseEvent evt) {
if (!tb.isEnabled()) {
return;
}
if (isDragging == true) {
Point position = evt.getPoint();
if (origin == null) {
origin = evt.getComponent().getLocationOnScreen();
}
floatAt(position, origin);
}
origin = null;
isDragging = false;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void mouseReleased(MouseEvent e)
{
if (!toolBar.isEnabled())
{
return;
}
if (isDragging == true)
{
Point position= e.getPoint();
if (origin == null)
origin= e.getComponent().getLocationOnScreen();
floatAt(position, origin);
}
origin= null;
isDragging= false;
}
public void mouseEntered(MouseEvent e)
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
@Override
public void mousePressed(MouseEvent evt) {
if (!tb.isEnabled()) {
return;
}
isDragging = false;
if (evt.getSource() instanceof JToolBar) {
JComponent c = (JComponent) evt.getSource();
Insets insets;
if (c.getBorder() instanceof PaletteToolBarBorder) {
insets = ((PaletteToolBarBorder) c.getBorder()).getDragInsets(c);
} else {
insets = c.getInsets();
}
isArmed = !(evt.getX() > insets.left && evt.getX() < c.getWidth() - insets.right
&& evt.getY() > insets.top && evt.getY() < c.getHeight() - insets.bottom);
}
}
内容来源于网络,如有侵权,请联系作者删除!