diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 19:24:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 10:02:49 -0600 |
commit | 99e3bd454bf607c5b561e2dc8e0f7a04f2bc28ed (patch) | |
tree | 929fae9a49326c5c92763fdd7c6e3f0def229e0a /odk/examples/DevelopersGuide/Forms/DataAwareness.java | |
parent | 91ff31b6f7c2fd217518f54396bbca6d4bde98a3 (diff) |
Remove visual noise from odk
Change-Id: I5638e2d37827c2d7322b72bf6ce176ac843639f1
Reviewed-on: https://gerrit.libreoffice.org/8285
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/DataAwareness.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Forms/DataAwareness.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java b/odk/examples/DevelopersGuide/Forms/DataAwareness.java index 70323e25a373..b11098698700 100644 --- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java +++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java @@ -690,7 +690,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan // ensure that we have the tables needed for our example ensureTables(); - // -------------------------------------------------------------- + /* create some shapes */ XPropertySet xSNRField = m_formLayer.insertControlLine( "NumericField", "SNR", "", 3 ); m_formLayer.insertControlLine( "TextField", "FIRSTNAME", "", 11); @@ -704,7 +704,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan xSNRField.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) ); xZipField.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) ); - // -------------------------------------------------------------- + /** need the form the control models belong to for this, we simply obtain the parent for any of the control models we have @@ -720,7 +720,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan m_xMasterForm.setPropertyValue( "CommandType", new Integer( CommandType.TABLE ) ); m_xMasterForm.setPropertyValue( "Command", "SALESMEN" ); - // -------------------------------------------------------------- + // insert the buttons // create our button operator, if necessary m_aOperator = new ButtonOperator( m_xCtx, m_document, m_xMasterForm ); @@ -732,7 +732,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan createButton( 42, 63, 8, "new", ">*", FormFeature.MoveToInsertRow ); createButton( 58, 63, 13, "reload", "reload", FormFeature.ReloadForm ); - // -------------------------------------------------------------- + // create a sub for for the sales // for this, first create a sub form and bind it to the SALES table @@ -786,7 +786,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan xFormReset.addResetListener( this ); - // -------------------------------------------------------------- + // the option for filtering the sales form XIndexContainer xSalesFilterForm = m_document.createSiblingForm( xSalesForm, "SalesFilter" ); XPropertySet xSFFProps = UNO.queryPropertySet( xSalesFilterForm ); @@ -806,7 +806,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan xManualFilter, xApplyFilter ); - // -------------------------------------------------------------- + // the options section // for this, we need a form which is a sibling of our master form (don't want to interfere // the controls which represent options only with the controls which are used for data access) @@ -858,7 +858,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan // initally, we want to generate keys when moving to a new record xKeyGen.setPropertyValue( "DefaultState", new Short( (short)1 ) ); - // -------------------------------------------------------------- + // second options block xLabel = m_formLayer.createControlAndShape( "GroupBox", 103, 33, 56, 25, xOptionsForm ); xLabel.setPropertyValue( "Name", "Misc" ); |