本文整理匯總了Java中org.uberfire.ext.widgets.core.client.wizards.WizardPage.isComplete方法的典型用法代碼示例。如果您正苦於以下問題:Java WizardPage.isComplete方法的具體用法?Java WizardPage.isComplete怎麽用?Java WizardPage.isComplete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.uberfire.ext.widgets.core.client.wizards.WizardPage
的用法示例。
在下文中一共展示了WizardPage.isComplete方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete(final Callback<Boolean> callback) {
final int[] unCompletedPages = {this.pages.size()};
final boolean[] completed = {false};
//only when all pages are complete we can say the wizard is complete.
for (WizardPage page : this.pages) {
page.isComplete(new Callback<Boolean>() {
@Override
public void callback(final Boolean result) {
if (Boolean.TRUE.equals(result)) {
unCompletedPages[0]--;
if (unCompletedPages[0] == 0) {
completed[0] = true;
}
}
}
});
}
callback.callback(completed[0]);
}
示例2: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete(final Callback<Boolean> callback) {
//Assume complete
callback.callback(true);
for (WizardPage page : this.pages) {
page.isComplete(new Callback<Boolean>() {
@Override
public void callback(final Boolean result) {
if (Boolean.FALSE.equals(result)) {
callback.callback(false);
}
}
});
}
}
示例3: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete(final Callback<Boolean> callback) {
callback.callback(true);
//only when all pages are complete we can say the wizard is complete.
for (WizardPage page : this.pages) {
page.isComplete(new Callback<Boolean>() {
@Override
public void callback(final Boolean result) {
if (Boolean.FALSE.equals(result)) {
callback.callback(false);
}
}
});
}
}
示例4: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete(final Callback<Boolean> callback) {
final int[] unCompletedPages = {this.pages.size()};
for (WizardPage page : this.pages) {
page.isComplete(result -> {
if (Boolean.TRUE.equals(result)) {
unCompletedPages[0]--;
if (unCompletedPages[0] == 0) {
callback.callback(true);
}
} else {
callback.callback(false);
}
});
}
}
示例5: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete( final Callback<Boolean> callback ) {
final int[] unCompletedPages = { this.pages.size() };
//only when all pages are complete we can say the wizard is complete.
for ( WizardPage page : this.pages ) {
page.isComplete( new Callback<Boolean>() {
@Override
public void callback( final Boolean result ) {
if ( Boolean.TRUE.equals( result ) ) {
unCompletedPages[ 0 ]--;
if ( unCompletedPages[ 0 ] == 0 ) {
callback.callback( true );
}
} else {
callback.callback( false );
}
}
} );
}
}
示例6: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete(final Callback<Boolean> callback) {
final int[] unCompletedPages = {this.pages.size()};
//only when all pages are complete we can say the wizard is complete.
for (WizardPage page : this.pages) {
page.isComplete(new Callback<Boolean>() {
@Override
public void callback(final Boolean result) {
if (Boolean.TRUE.equals(result)) {
unCompletedPages[0]--;
if (unCompletedPages[0] == 0) {
callback.callback(true);
}
} else {
callback.callback(false);
}
}
});
}
}
示例7: assertPageComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
public static void assertPageComplete(final boolean expectedResult,
WizardPage page) {
page.isComplete(new Callback<Boolean>() {
@Override
public void callback(Boolean result) {
assertEquals(expectedResult,
result);
}
});
}
示例8: isComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
@Override
public void isComplete(final Callback<Boolean> callback) {
//Assume complete
callback.callback(true);
for (final WizardPage page : this.pages) {
page.isComplete(result -> {
if (Boolean.FALSE.equals(result)) {
callback.callback(false);
}
});
}
}
示例9: assertPageComplete
import org.uberfire.ext.widgets.core.client.wizards.WizardPage; //導入方法依賴的package包/類
public static void assertPageComplete( final boolean expectedResult, WizardPage page ) {
page.isComplete( new Callback<Boolean>() {
@Override public void callback( Boolean result ) {
assertEquals( expectedResult, result );
}
} );
}