下面列出了怎么用javax.swing.plaf.PopupMenuUI的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Maps {@code JPopupMenu.getUI()} through queue
*/
public PopupMenuUI getUI() {
return (runMapping(new MapAction<PopupMenuUI>("getUI") {
@Override
public PopupMenuUI map() {
return ((JPopupMenu) getSource()).getUI();
}
}));
}
/**
* Maps {@code JPopupMenu.setUI(PopupMenuUI)} through queue
*/
public void setUI(final PopupMenuUI popupMenuUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JPopupMenu) getSource()).setUI(popupMenuUI);
}
});
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}
/**
* Invokes the <code>getPopup</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.4
*/
public Popup getPopup(JPopupMenu a, int b, int c) {
Popup returnValue =
((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
}
return returnValue;
}
/**
* Invokes the <code>isPopupTrigger</code> method on each UI handled by this object.
*
* @return the value obtained from the first UI, which is
* the UI obtained from the default <code>LookAndFeel</code>
* @since 1.3
*/
public boolean isPopupTrigger(MouseEvent a) {
boolean returnValue =
((PopupMenuUI) (uis.elementAt(0))).isPopupTrigger(a);
for (int i = 1; i < uis.size(); i++) {
((PopupMenuUI) (uis.elementAt(i))).isPopupTrigger(a);
}
return returnValue;
}