本文整理匯總了Java中org.openide.NotifyDescriptor.getOptions方法的典型用法代碼示例。如果您正苦於以下問題:Java NotifyDescriptor.getOptions方法的具體用法?Java NotifyDescriptor.getOptions怎麽用?Java NotifyDescriptor.getOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.openide.NotifyDescriptor
的用法示例。
在下文中一共展示了NotifyDescriptor.getOptions方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
assertNull (options);
assertNotNull (toReturn);
options = descriptor.getOptions();
Object r = toReturn;
toReturn = null;
return r;
}
示例2: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
if (disableTest) {
return toReturn;
} else {
assertNull(options);
assertNotNull(toReturn);
options = descriptor.getOptions();
Object r = toReturn;
toReturn = null;
return r;
}
}
示例3: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
IntroduceFieldPanel panel = (IntroduceFieldPanel) descriptor
.getMessage();
if (name != null) {
panel
.setFieldName(name);
}
if (replaceAll != null) {
panel
.setReplaceAll(replaceAll);
}
if (declareFinal != null) {
panel
.setDeclareFinal(declareFinal);
}
if (modifiers != null) {
panel
.setAccess(modifiers);
}
return ok ? descriptor
.getOptions()[0] : descriptor
.getOptions()[1];
}
示例4: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
@Override
public Object notify(NotifyDescriptor descriptor) {
return descriptor.getOptions()[1];
}
示例5: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
// last options allows to close usually
return descriptor.getOptions()[descriptor.getOptions().length - 1];
}
示例6: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
assertAWT();
// last options allows to close usually
return descriptor.getOptions()[descriptor.getOptions().length - 1];
}
示例7: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
@Override
public Object notify(NotifyDescriptor descriptor) {
return descriptor.getOptions()[0];
}
示例8: notify
import org.openide.NotifyDescriptor; //導入方法依賴的package包/類
public Object notify(NotifyDescriptor descriptor) {
assertNull("No dialog yet", nd);
nd = descriptor;
Object r = descriptor.getOptions()[toReturn];
toReturn = -1;
return r;
}