本文整理了Java中javax.swing.JPopupMenu.isVisible()
方法的一些代码示例,展示了JPopupMenu.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPopupMenu.isVisible()
方法的具体详情如下:
包路径:javax.swing.JPopupMenu
类名称:JPopupMenu
方法名:isVisible
暂无
代码示例来源:origin: stackoverflow.com
if (!popup.isVisible()) {
popup.show(field, 0, field.getHeight());
代码示例来源:origin: stackoverflow.com
public boolean isPopupMenuVisible() {
ensurePopupMenuCreated();
return popupMenu.isVisible();
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
protected void hidePopup() {
if (popup.isVisible()) {
popup.setVisible(false);
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
protected void hidePopup() {
if (popup.isVisible()) {
popup.setVisible(false);
}
}
代码示例来源:origin: mucommander/mucommander
@Override
protected void hideAutocompletionPopup() {
synchronized (popup) {
if (popup.isVisible())
popup.setVisible(false);
}
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
return super.isVisible();
}
代码示例来源:origin: mucommander/mucommander
@Override
protected void hideAutocompletionPopup() {
synchronized (popup) {
if (popup.isVisible())
popup.setVisible(false);
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-number
public void doActionPerformed__on__showPopUpButton(ActionEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
handler.setPopupVisible(!popup.isVisible());
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
@Override
public void mouseReleased(MouseEvent e) {
if (!thePopupMenu.isVisible())
return;
toRestoreOriginal = false;
thePopupMenu.setVisible(false);
theStartRectangle = theRectangle;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
public void mousePressed(MouseEvent mouseEvent) {
if (headerPopup.isVisible()) {
internalCornerButtonClick = true;
cornerButton.getModel().setArmed(false);
} else {
internalCornerButtonClick = false;
if (mouseEvent.getModifiers() == InputEvent.BUTTON3_MASK) {
showColumnSelectionPopup(headerPopup, cornerButton);
}
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
public void componentAdded(final ContainerEvent e) {
if (thePopupMenu.isVisible()) {
thePopupMenu.setVisible(false);
}
final Component comp = theScrollPane.getViewport().getView();
theComponent = (comp instanceof JComponent) ? (JComponent) comp : null;
}
};
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (log.isDebugEnabled()) {
log.debug("set showPopupButton" + evt.getNewValue() + " for " + editor.getProperty());
}
if (editor.getPopup().isVisible()) {
setPopupVisible(false);
}
}
});
代码示例来源:origin: chatty/chatty
/**
* Clears the selection if dialog is not active.
*/
private void checkToClearSelection() {
if (!isFocusOwner() &&
(lastContextMenu == null || !lastContextMenu.isVisible())) {
clearSelection();
}
}
代码示例来源:origin: mucommander/mucommander
public void insertUpdate(DocumentEvent e){
// If text was inserted to the text component and carent is at the end of
// the text, then start a showingThread to open auto-completion popup.
if (autocompletedtextComp.isCarentAtEndOfTextAtInsertion())
createNewShowingThread(popup.isVisible() ? 0 : POPUP_DELAY_AT_TEXT_INSERTION);
}
代码示例来源:origin: mucommander/mucommander
public void removeUpdate(DocumentEvent e){
// If text was deleted from the text component and carent is at the end of
// the text, then start a showingThread to open auto-completion popup.
if (autocompletedtextComp.isCarentAtEndOfTextAtRemoval())
createNewShowingThread(popup.isVisible() ? 0 : POPUP_DELAY_AT_TEXT_DELETION);
}
代码示例来源:origin: net.sf.jped/jedit-syntax
public void mouseDragged(MouseEvent evt)
{
if(popup != null && popup.isVisible())
return;
setSelectionRectangular((evt.getModifiers()
& InputEvent.CTRL_MASK) != 0);
select(getMarkPosition(),xyToOffset(evt.getX(),evt.getY()));
}
代码示例来源:origin: nativelibs4java/JNAerator
public void mouseDragged(MouseEvent evt)
{
if(popup != null && popup.isVisible())
return;
setSelectionRectangular((evt.getModifiers()
& InputEvent.CTRL_MASK) != 0);
select(getMarkPosition(),xyToOffset(evt.getX(),evt.getY()));
}
代码示例来源:origin: mucommander/mucommander
@Override
protected void hideAutocompletionPopup() {
synchronized (popup) {
if (popup.isVisible())
popup.setVisible(false);
autocompletedtextComp.getDocument().removeDocumentListener(documentListener);
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
public void showPopupCalendar() {
if (popupMenu.isVisible()) {
popupMenu.setVisible(false);
} else {
calendarPanel.setDate((Date) JDateTextField.this.getValue());
JDateTextField.this.requestFocus();
popupMenu.show(JDateTextField.this, 0, JDateTextField.this
.getHeight());
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
void showPopup() {
if ( popupVisible || autoPopup ) {
if (!popupVisible) {
setPopupVisible(true);
} else if (!getPopup().isVisible()) {
getHandler().setPopupVisible(true);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!