下面列出了怎么用java.awt.peer.DialogPeer的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable {@code true} if the user can
* resize this dialog; {@code false} otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable {@code true} if the user can
* resize this dialog; {@code false} otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}
/**
* Sets whether this dialog is resizable by the user.
* @param resizable <code>true</code> if the user can
* resize this dialog; <code>false</code> otherwise.
* @see java.awt.Dialog#isResizable
*/
public void setResizable(boolean resizable) {
boolean testvalid = false;
synchronized (this) {
this.resizable = resizable;
DialogPeer peer = (DialogPeer)this.peer;
if (peer != null) {
peer.setResizable(resizable);
testvalid = true;
}
}
// On some platforms, changing the resizable state affects
// the insets of the Dialog. If we could, we'd call invalidate()
// from the peer, but we need to guarantee that we're not holding
// the Dialog lock when we call invalidate().
if (testvalid) {
invalidateIfValid();
}
}
void blockWindows(java.util.List<Window> toBlock) {
DialogPeer dpeer = (DialogPeer)peer;
if (dpeer == null) {
return;
}
Iterator<Window> it = toBlock.iterator();
while (it.hasNext()) {
Window w = it.next();
if (!w.isModalBlocked()) {
w.setModalBlocked(this, true, false);
} else {
it.remove();
}
}
dpeer.blockWindows(toBlock);
blockedWindows.addAll(toBlock);
}