This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="DialogText"> | |
<item name="android:textColor">#FF231f20</item> | |
<item name="android:textSize">25sp</item> | |
<item name="android:textStyle">bold</item> | |
</style> | |
<style name="DialogText.Title"> | |
<item name="android:textColor">#FF364945</item> | |
<item name="android:textSize">24sp</item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="TableDialog" parent="android:style/Theme.Dialog"> | |
<item name="android:windowBackground">@null</item> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowIsFloating">true</item> | |
</style> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static final int TABLE_DIALOG = 0; | |
ArrayList<TableRow> rows; | |
String tableDialogTime; | |
int tableDialogTableHeaderColor; | |
int tableDialogTableHeaderIcon; | |
Dialog dialog; | |
/** | |
* Pops up a dialog to show a table. | |
* @param rows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final int defaultFlag = PackageManager.MATCH_DEFAULT_ONLY; | |
Intent[] explicitIntents; | |
//see an example here http://stackoverflow.com/questions/2662531/launching-google-maps-directions-via-an-intent-on-android | |
private Intent[] getExplicitIntents() { | |
if(explicitIntents == null) { | |
PackageManager currentPM = getPackageManager(); | |
explicitIntents = new Intent[]{ | |
new Intent("android.intent.action.navigon.START_PUBLIC"), //navigon with public intent | |
currentPM.getLaunchIntentForPackage("com.navigon.navigator"), //navigon without public intent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import oracle.adf.view.faces.event.SortEvent; | |
import oracle.adf.view.faces.model.SortCriterion; | |
import oracle.adf.view.faces.component.core.data.CoreTable; | |
import java.util.List; | |
import java.util.ArrayList; | |
public class Customers { | |
public void onSort(SortEvent se) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table value="#{bindings.CustomerSearch.collectionModel}" var="row" | |
rows="#{bindings.CustomerSearch.rangeSize}" | |
first="#{bindings.CustomerSearch.rangeStart}" banding="row" | |
bandinginterval="1" | |
emptytext="#{bindings.CustomerSearch.viewable ? 'No rows yet.' : 'Access denied.'}" | |
sortlistener="#{CustomersBean.onSort}"> | |
<column sortproperty="Customerid" sortable="true" | |
headertext="#{bindings.CustomerSearch.labels.Customerid}"> | |
<commandlink text="#{row.Customerid}" | |
onclick="return initiateReplacement(#{row.Customerid});" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<af:selectManyCheckbox value="#{ManagedBean.selectedItems}"> | |
<f:selectItems value="#{ManagedBean.initialListItems}"/> | |
</af:selectManyCheckbox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<javax.faces.model.SelectItem> initialListItems; | |
public ArrayList getInitialListItems() { | |
if(initialListItems == null) { | |
initialListItems = new ArrayList(); | |
JUIteratorBinding paramIter = | |
(JUIteratorBinding)JSFUtils.resolveExpression("#{bindings.ParamView1Iterator}"); | |
for(int i = 0; i < paramIter.getEstimatedRowCount(); i++) { | |
ParamViewRowImpl paramRow = (ParamViewRowImpl)paramIter.getRowAtRangeIndex(i); | |
SelectItem si = new SelectItem(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onDeleteConfirmation(oracle.adf.view.rich.event.DialogEvent de) { | |
if(de.getOutcome().equals(oracle.adf.view.rich.event.DialogEvent.Outcome.ok)) { | |
deleteSelectedRow(); | |
FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(), "", "scheduler"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table varstatus="rowStat" value="#{SchedulerBean.localCollectionModel}" | |
fetchsize="25" contentdelivery="immediate" | |
rows="#{SchedulerBean.localCollectionModel.rowCount}" | |
emptytext="#{msg.SCHED_EMPTY_TABLE}" rowselection="single" width="100%" | |
var="row" rowbandinginterval="0" binding="#{SchedulerBean.schedTable}" | |
id="schedTable"> | |
<column headertext="#{msg.ACTIONS}" sortable="false" | |
inlinestyle="background-color:#{(not empty row[SchedulerBean.columns[6].label] and row[SchedulerBean.columns[6].label] eq 'RUNNING'? '#00ff00' :'')};" | |
width="#{set.ACTIONS_COLUMN_WIDTH}"> | |
<panelformlayout rows="1"> |