java: use Boolean.valueOf instead of instantiating Boolean objects

Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
This commit is contained in:
Noel Grandin 2014-08-12 14:00:54 +02:00
parent 56ef5533fc
commit be1bb7b1cc
198 changed files with 402 additions and 402 deletions

View File

@ -621,7 +621,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = bootstrapContext.dummySmallDevice;
@ -821,13 +821,13 @@ public class DocumentLoader
PropertyValue loadProps[] = new PropertyValue[3];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
loadProps[0].Value = new Boolean(true);
loadProps[0].Value = Boolean.TRUE;
loadProps[1] = new PropertyValue();
loadProps[1].Name = "ReadOnly";
loadProps[1].Value = new Boolean(true);
loadProps[1].Value = Boolean.TRUE;
loadProps[2] = new PropertyValue();
loadProps[2].Name = "Preview";
loadProps[2].Value = new Boolean(true);
loadProps[2].Value = Boolean.TRUE;
long t0 = System.currentTimeMillis();
documentContext.doc = bootstrapContext.componentLoader.loadComponentFromURL(url, "_blank", 0, loadProps);
@ -839,7 +839,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = bootstrapContext.dummySmallDevice;

View File

@ -398,7 +398,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
@ -487,7 +487,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
@ -803,13 +803,13 @@ public class DocumentLoader
PropertyValue loadProps[] = new PropertyValue[3];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
loadProps[0].Value = new Boolean(true);
loadProps[0].Value = Boolean.TRUE;
loadProps[1] = new PropertyValue();
loadProps[1].Name = "ReadOnly";
loadProps[1].Value = new Boolean(true);
loadProps[1].Value = Boolean.TRUE;
loadProps[2] = new PropertyValue();
loadProps[2].Name = "Preview";
loadProps[2].Value = new Boolean(true);
loadProps[2].Value = Boolean.TRUE;
long t0 = System.currentTimeMillis();
doc = componentLoader.loadComponentFromURL(url, "_blank", 0, loadProps);
@ -833,7 +833,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;

View File

@ -662,7 +662,7 @@ class ListItemAdapter implements ListAdapter{
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
@ -781,13 +781,13 @@ class ListItemAdapter implements ListAdapter{
PropertyValue loadProps[] = new PropertyValue[3];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
loadProps[0].Value = new Boolean(true);
loadProps[0].Value = Boolean.TRUE;
loadProps[1] = new PropertyValue();
loadProps[1].Name = "ReadOnly";
loadProps[1].Value = new Boolean(true);
loadProps[1].Value = Boolean.TRUE;
loadProps[2] = new PropertyValue();
loadProps[2].Name = "Preview";
loadProps[2].Value = new Boolean(true);
loadProps[2].Value = Boolean.TRUE;
t0 = System.currentTimeMillis();
doc = componentLoader.loadComponentFromURL(url, "_blank", 0, loadProps);
@ -812,7 +812,7 @@ class ListItemAdapter implements ListAdapter{
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
renderProps[0].Value = new Boolean(true);
renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;

View File

@ -259,7 +259,7 @@ public class LocalOfficeWindow
NamedValue window = new NamedValue(
"WINDOW", new Any(new Type(Long.class), new Long(getNativeWindow())));
NamedValue xembed = new NamedValue(
"XEMBED", new Any(new Type(Boolean.class), new Boolean(false)));
"XEMBED", new Any(new Type(Boolean.class), Boolean.FALSE));
if (getNativeWindowSystemType() == SystemDependent.SYSTEM_XWINDOW )
{
@ -270,7 +270,7 @@ public class LocalOfficeWindow
{
xembed = new NamedValue(
"XEMBED",
new Any(new Type(Boolean.class), new Boolean(true)));
new Any(new Type(Boolean.class), Boolean.TRUE));
}
}
return new Any(

View File

@ -837,7 +837,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
}
// notify change
firePropertyChange( aProperty, new Boolean(bOldValue), new Boolean(bNewValue) );
firePropertyChange( aProperty, Boolean.valueOf(bOldValue), Boolean.valueOf(bNewValue) );
}
}

View File

@ -210,7 +210,7 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
}
private Boolean isSame(Object obj) {
return new Boolean(obj != null
return Boolean.valueOf(obj != null
&& m_oid.equals(UnoRuntime.generateOid(obj)));
}
}

View File

@ -148,7 +148,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet xDocProp = UnoRuntime.queryInterface(
XPropertySet.class, mxOldDoc );
assure( "Chart Document is no XPropertySet", xDocProp != null );
xDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
xDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
assure( "Property HasMainTitle", AnyConverter.toBoolean(
xDocProp.getPropertyValue( "HasMainTitle" )));
@ -198,7 +198,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet xDocProp = UnoRuntime.queryInterface(
XPropertySet.class, mxOldDoc );
assure( "Chart Document is no XPropertySet", xDocProp != null );
xDocProp.setPropertyValue( "HasSubTitle", new Boolean( true ));
xDocProp.setPropertyValue( "HasSubTitle", Boolean.TRUE);
assure( "Property HasSubTitle", AnyConverter.toBoolean(
xDocProp.getPropertyValue( "HasSubTitle" )));
@ -267,14 +267,14 @@ public class TestCaseOldAPI extends ComplexTestCase {
// y-axis
boolean bFirstYAxisText = false;
xProp.setPropertyValue( "HasYAxisDescription", new Boolean( bFirstYAxisText ));
xProp.setPropertyValue( "HasYAxisDescription", Boolean.valueOf( bFirstYAxisText ));
boolean bNewFirstYAxisText = AnyConverter.toBoolean(
xProp.getPropertyValue( "HasYAxisDescription" ));
assure( "Removing description of first y-axis", bNewFirstYAxisText == bFirstYAxisText );
// second y-axis
boolean bSecondaryYAxis = true;
xProp.setPropertyValue( "HasSecondaryYAxis", new Boolean( bSecondaryYAxis ));
xProp.setPropertyValue( "HasSecondaryYAxis", Boolean.valueOf( bSecondaryYAxis ));
boolean bNewSecYAxisValue = AnyConverter.toBoolean(
xProp.getPropertyValue( "HasSecondaryYAxis" ));
assure( "Adding a second y-axis does not work", bNewSecYAxisValue == bSecondaryYAxis );
@ -347,7 +347,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
fMax1 = AnyConverter.toDouble( oMax );
log.println( "Maximum retrieved: " + fMax1 );
//todo: the view has to be built before there is an explicit value
xProp.setPropertyValue( "AutoMax", new Boolean( false ));
xProp.setPropertyValue( "AutoMax", Boolean.FALSE);
oMax = xProp.getPropertyValue( "Max" );
assure( "No Maximum set", AnyConverter.isDouble( oMax ));
fMax2 = AnyConverter.toDouble( oMax );
@ -365,7 +365,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
AnyConverter.toDouble( xProp.getPropertyValue( "Max" )),
nNewMax ));
xProp.setPropertyValue( "AutoMin", new Boolean( true ));
xProp.setPropertyValue( "AutoMin", Boolean.TRUE);
assure( "AutoMin is off", AnyConverter.toBoolean( xProp.getPropertyValue( "AutoMin" )) );
xProp.setPropertyValue( "Origin", new Double( nNewOrigin ));
@ -373,16 +373,16 @@ public class TestCaseOldAPI extends ComplexTestCase {
approxEqual(
AnyConverter.toDouble( xProp.getPropertyValue( "Origin" )),
nNewOrigin ));
xProp.setPropertyValue( "AutoOrigin", new Boolean( true ));
xProp.setPropertyValue( "AutoOrigin", Boolean.TRUE);
assure( "AutoOrigin is off", AnyConverter.toBoolean( xProp.getPropertyValue( "AutoOrigin" )) );
Object oOrigin = xProp.getPropertyValue( "Origin" );
assure( "No Origin set", AnyConverter.isDouble( oOrigin ));
log.println( "Origin retrieved: " + AnyConverter.toDouble( oOrigin ));
xProp.setPropertyValue( "Logarithmic", new Boolean( true ));
xProp.setPropertyValue( "Logarithmic", Boolean.TRUE);
assure( "Scaling is not logarithmic",
AnyConverter.toBoolean( xProp.getPropertyValue( "Logarithmic" )) );
xProp.setPropertyValue( "Logarithmic", new Boolean( false ));
xProp.setPropertyValue( "Logarithmic", Boolean.FALSE);
assure( "Scaling is not logarithmic",
! AnyConverter.toBoolean( xProp.getPropertyValue( "Logarithmic" )) );
@ -413,7 +413,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
assure( "Property StepHelp",
AnyConverter.toDouble( xProp.getPropertyValue( "StepHelp" )) == fStepHelp );
xProp.setPropertyValue( "DisplayLabels", new Boolean( false ));
xProp.setPropertyValue( "DisplayLabels", Boolean.FALSE);
assure( "Property DisplayLabels", ! AnyConverter.toBoolean(
xProp.getPropertyValue( "DisplayLabels" )));
}
@ -529,17 +529,17 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet.class, xDia );
assure( "Diagram is no XPropertySet", xDiaProp != null );
xDiaProp.setPropertyValue( "Stacked", new Boolean( true ));
xDiaProp.setPropertyValue( "Stacked", Boolean.TRUE);
assure( "StackMode could not be set correctly",
AnyConverter.toBoolean(
xDiaProp.getPropertyValue( "Stacked" )));
xDiaProp.setPropertyValue( "Dim3D", new Boolean( false ));
xDiaProp.setPropertyValue( "Dim3D", Boolean.FALSE);
assure( "Dim3D could not be set correctly",
! AnyConverter.toBoolean(
xDiaProp.getPropertyValue( "Dim3D" )));
xDiaProp.setPropertyValue( "Vertical", new Boolean( true ));
xDiaProp.setPropertyValue( "Vertical", Boolean.TRUE);
assure( "Vertical could not be set correctly",
AnyConverter.toBoolean(
xDiaProp.getPropertyValue( "Vertical" )));
@ -646,7 +646,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
xHatchTable.insertByName( aHatchName, aHatch );
xProp.setPropertyValue( "FillHatchName", aHatchName );
xProp.setPropertyValue( "FillStyle", FillStyle.HATCH );
xProp.setPropertyValue( "FillBackground", new Boolean( true ));
xProp.setPropertyValue( "FillBackground", Boolean.TRUE);
String aNewHatchName = AnyConverter.toString( xProp.getPropertyValue( "FillHatchName" ));
assure( "HatchName", aNewHatchName.equals( aHatchName ));
Hatch aNewHatch = (Hatch) AnyConverter.toObject(
@ -677,7 +677,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet xProp = xDia.getDataRowProperties( 0 );
assure( "No DataRowProperties for first series", xProp != null );
xProp.setPropertyValue( "MeanValue", new Boolean( true ));
xProp.setPropertyValue( "MeanValue", Boolean.TRUE);
assure( "No MeanValue", AnyConverter.toBoolean( xProp.getPropertyValue( "MeanValue" )) );
}
catch( Exception ex )
@ -764,10 +764,10 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet.class, xDia );
assure( "Diagram is no XPropertySet", xDiaProp != null );
xDiaProp.setPropertyValue( "Volume", new Boolean( true ));
xDiaProp.setPropertyValue( "Volume", Boolean.TRUE);
assure( "Has Volume", AnyConverter.toBoolean( xDiaProp.getPropertyValue( "Volume" )));
xDiaProp.setPropertyValue( "UpDown", new Boolean( true ));
xDiaProp.setPropertyValue( "UpDown", Boolean.TRUE);
assure( "Has UpDown", AnyConverter.toBoolean( xDiaProp.getPropertyValue( "UpDown" )));
// MinMaxLine

View File

@ -234,7 +234,7 @@ public class Map /* extends complexlib.ComplexTestCase */
Object someValue = null;
switch ( _pos )
{
case 0: someValue = new Boolean( false ); break;
case 0: someValue = Boolean.FALSE; break;
case 1: someValue = new Short( (short)0 ); break;
case 2: someValue = new Integer( 0 ); break;
case 3: someValue = new Long( 0 ); break;

View File

@ -278,7 +278,7 @@ public class SingleSelectQueryComposer extends CRMBasedTestCase
final Object initArgs[] =
{
new NamedValue("AutomaticAddition", Boolean.valueOf(true))
new NamedValue("AutomaticAddition", Boolean.TRUE)
};
final String serviceName = "com.sun.star.beans.PropertyBag";
final XPropertyContainer filter = UnoRuntime.queryInterface(XPropertyContainer.class, getMSF().createInstanceWithArguments(serviceName, initArgs));

View File

@ -1314,7 +1314,7 @@ public class EmbedContApp extends Applet
aMedDescr[0].Name = "URL";
aMedDescr[0].Value = (Object) aLinkURL;
aMedDescr[1].Name = "ReadOnly";
aMedDescr[1].Value = (Object) new Boolean( false );
aMedDescr[1].Value = (Object) Boolean.FALSE;
Object oEmbObj = xLinkCreator.createInstanceLink( m_xStorage, "EmbedSub", aMedDescr, new PropertyValue[0] );
xEmbObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj );
}
@ -1348,7 +1348,7 @@ public class EmbedContApp extends Applet
aMedDescr[0].Name = "URL";
aMedDescr[0].Value = (Object) aFileURI;
aMedDescr[1].Name = "ReadOnly";
aMedDescr[1].Value = (Object) new Boolean( false );
aMedDescr[1].Value = (Object) Boolean.FALSE;
Object oEmbObj = xEmbedCreator.createInstanceInitFromMediaDescriptor( m_xStorage,
"EmbedSub",
aMedDescr,
@ -1460,7 +1460,7 @@ public class EmbedContApp extends Applet
PropertyValue aProps[] = { new PropertyValue() };
aProps[0].Name = "StoreVisualReplacement";
aProps[0].Value = new Boolean( m_bStoreVisRepl );
aProps[0].Value = Boolean.valueOf( m_bStoreVisRepl );
xPersist.storeAsEntry( xTargetStorage, "EmbedSub", new PropertyValue[0], aProps );
xPersist.saveCompleted( true );

View File

@ -215,7 +215,7 @@ public class CellBinding extends complexlib.ComplexTestCase
{
XPropertySet checkBox = m_formLayer.createControlAndShape( "DatabaseCheckBox", 30, 59, 40, 4 );
checkBox.setPropertyValue( "Label", "check box" );
checkBox.setPropertyValue( "TriState", new Boolean( true ) );
checkBox.setPropertyValue( "TriState", Boolean.TRUE );
short col = (short)0;
short row = (short)13;
@ -245,7 +245,7 @@ public class CellBinding extends complexlib.ComplexTestCase
XPropertySet checkBox = m_formLayer.createControlAndShape( "DatabaseCheckBox", 30, 68, 40, 4 );
checkBox.setPropertyValue( "Label", "check box with ref value" );
checkBox.setPropertyValue( "TriState", new Boolean( true ) );
checkBox.setPropertyValue( "TriState", Boolean.TRUE );
checkBox.setPropertyValue( "RefValue", refValue );
short col = (short)0;
@ -276,7 +276,7 @@ public class CellBinding extends complexlib.ComplexTestCase
public void checkListBoxBinding( ) throws com.sun.star.uno.Exception, java.lang.Exception
{
XPropertySet listBox = m_formLayer.createControlAndShape( "DatabaseListBox", 30, 80, 40, 6 );
listBox.setPropertyValue( "Dropdown", new Boolean( true ) );
listBox.setPropertyValue( "Dropdown", Boolean.TRUE );
listBox.setPropertyValue( "StringItemList", new String[] { "Apples", "Oranges", "Peaches" } );
short col = (short)0;
@ -317,7 +317,7 @@ public class CellBinding extends complexlib.ComplexTestCase
public void checkListBoxIndexBinding() throws com.sun.star.uno.Exception, java.lang.Exception
{
XPropertySet listBox = m_formLayer.createControlAndShape( "DatabaseListBox", 30, 94, 40, 6 );
listBox.setPropertyValue( "Dropdown", new Boolean( true ) );
listBox.setPropertyValue( "Dropdown", Boolean.TRUE );
listBox.setPropertyValue( "StringItemList", new String[] { "Pears", "Bananas", "Strawberries" } );
short col = (short)0;

View File

@ -119,21 +119,21 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com
validation = new SingleControlValidation( m_document, 5, 55, "DatabaseDateField", new DateValidator() );
validation.setExplanatoryText( "Please enter a date in the current month" );
validation.getInputField().setPropertyValue( "Dropdown", new Boolean( true ) );
validation.getInputField().setPropertyValue( "Dropdown", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 55, "DatabaseTimeField", new TimeValidator() );
validation.setExplanatoryText( "Please enter a time. Valid values are all full hours." );
validation = new SingleControlValidation( m_document, 5, 110, "DatabaseCheckBox", new BooleanValidator( false ) );
validation.setExplanatoryText( "Please check (well, or uncheck) the box. Don't leave it in indetermined state." );
validation.getInputField().setPropertyValue( "TriState", new Boolean( true ) );
validation.getInputField().setPropertyValue( "TriState", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 110, "DatabaseRadioButton", new BooleanValidator( true ), 3, 0 );
validation.setExplanatoryText( "Please check any but the first button" );
validation = new SingleControlValidation( m_document, 5, 165, "DatabaseListBox", new ListSelectionValidator( ), 1, 24 );
validation.setExplanatoryText( "Please select not more than two entries." );
validation.getInputField().setPropertyValue( "MultiSelection", new Boolean( true ) );
validation.getInputField().setPropertyValue( "MultiSelection", Boolean.TRUE );
validation.getInputField().setPropertyValue( "StringItemList", new String[] { "first", "second", "third", "forth", "fivth" } );
// switch to alive mode

View File

@ -487,7 +487,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
XPropertySet dataSourceSettings = UnoRuntime.queryInterface( XPropertySet.class,
m_dataSourceProps.getPropertyValue( "Settings" ) );
dataSourceSettings.setPropertyValue( "FormsCheckRequiredFields", new Boolean( false ) );
dataSourceSettings.setPropertyValue( "FormsCheckRequiredFields", Boolean.FALSE );
return m_dataSource != null;
}
@ -527,13 +527,13 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
m_formLayer.insertControlLine( "DatabaseTextField", "dummy", "", 150 );
xIDField.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) );
xImageField.setPropertyValue( "ScaleImage", new Boolean( true) );
xImageField.setPropertyValue( "Tabstop", new Boolean( true ) );
xCheckBox.setPropertyValue( "TriState", new Boolean( true ) );
xImageField.setPropertyValue( "ScaleImage", Boolean.TRUE );
xImageField.setPropertyValue( "Tabstop", Boolean.TRUE );
xCheckBox.setPropertyValue( "TriState", Boolean.TRUE );
xCheckBox.setPropertyValue( "DefaultState", new Short( (short)2 ) );
xTimeField.setPropertyValue( "TimeFormat", new Short( (short)1 ) );
xTimeField.setPropertyValue( "TimeMax", new Integer( 23595999 ) );
xReqField.setPropertyValue( "ConvertEmptyToNull", new Boolean( false ) );
xReqField.setPropertyValue( "ConvertEmptyToNull", Boolean.FALSE );
// the logical form
m_masterForm = (XPropertySet)dbfTools.getParent( xIDField, XPropertySet.class );

View File

@ -273,7 +273,7 @@ public class ListBox extends TestCase
final String columnFKName = fieldTypes[i] + "_fk";
final String columnPKName = fieldTypes[i] + "_pk";
XPropertySet listBoxModel = m_formLayer.insertControlLine( "DatabaseListBox", columnFKName, null, 10, 20 + 10*i, 6 );
listBoxModel.setPropertyValue( "Dropdown", new Boolean( true ) );
listBoxModel.setPropertyValue( "Dropdown", Boolean.TRUE );
listBoxModel.setPropertyValue( "ListSourceType", ListSourceType.SQL );
listBoxModel.setPropertyValue( "ListSource", new String[] { "SELECT \"content\", \"" + columnPKName +
"\" FROM \"" + tableName + "\"" } );

View File

@ -247,7 +247,7 @@ public class ListSelection extends integration.forms.TestCase
// and a list box
XPropertySet listBox = m_formLayer.createControlAndShape( "ListBox", 50, 10, 40, 6 );
listBox.setPropertyValue( "Dropdown", new Boolean( true ) );
listBox.setPropertyValue( "Dropdown", Boolean.TRUE );
listBox.setPropertyValue( "StringItemList", newSheetNames );
listBox.setPropertyValue( "Name", "ListBox" );

View File

@ -78,7 +78,7 @@ public class SingleControlValidation implements XFormComponentValidityListener
try
{
m_inputLabel = m_formLayer.createControlAndShape( "FixedText", columnPos, rowPos, 70, 12, null );
m_inputLabel.setPropertyValue( "MultiLine", new Boolean( true ) );
m_inputLabel.setPropertyValue( "MultiLine", Boolean.TRUE );
com.sun.star.awt.FontDescriptor font = (com.sun.star.awt.FontDescriptor)m_inputLabel.getPropertyValue( "FontDescriptor" );
font.Weight = com.sun.star.awt.FontWeight.BOLD;

View File

@ -153,7 +153,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
XPropertySet dateControl = m_formLayer.createControlAndShape(
"DatabaseDateField", 40, 26, 25, 6 );
dateControl.setPropertyValue( "Dropdown", new Boolean( true ) );
dateControl.setPropertyValue( "Dropdown", Boolean.TRUE );
impl_bind( dateControl, m_dateBinding );
m_document.getCurrentView( ).toggleFormDesignMode( );

View File

@ -75,7 +75,7 @@ public class Model
{
try
{
m_modelProps.setPropertyValue("ExternalData", new Boolean(!_internalData));
m_modelProps.setPropertyValue("ExternalData", Boolean.valueOf(!_internalData));
}
catch (Exception ex)
{

View File

@ -235,8 +235,8 @@ public class PathSubstitutionTest
boolean canResubst)
{
varName.add(var);
this.substAtBegin.add(new Boolean(onlySubstAtBegin));
this.resubst.add(new Boolean(canResubst));
this.substAtBegin.add(Boolean.valueOf(onlySubstAtBegin));
this.resubst.add(Boolean.valueOf(canResubst));
}
public void putValue(int i, String val)

View File

@ -731,7 +731,7 @@ XMultiPropertySet
retVal= obj;
}
else if(cl.equals(boolean.class))
retVal= new Boolean(AnyConverter.toBoolean(obj));
retVal= Boolean.valueOf(AnyConverter.toBoolean(obj));
else if (cl.equals(char.class))
retVal= new Character(AnyConverter.toChar(obj));
else if (cl.equals(byte.class))
@ -753,7 +753,7 @@ XMultiPropertySet
else if (cl.equals(Type.class))
retVal= AnyConverter.toType(obj);
else if (cl.equals(Boolean.class))
retVal= new Boolean(AnyConverter.toBoolean(obj));
retVal= Boolean.valueOf(AnyConverter.toBoolean(obj));
else if (cl.equals(Character.class))
retVal= new Character(AnyConverter.toChar(obj));
else if (cl.equals(Byte.class))

View File

@ -894,7 +894,7 @@ public final class PropertySetMixin {
isDefaulted, wrapOptional));
UnoRuntime.queryInterface(
XIdlField2.class, type.getField("IsAmbiguous")).set(
strct, new Boolean(isAmbiguous));
strct, Boolean.valueOf(isAmbiguous));
} catch (com.sun.star.lang.IllegalArgumentException e) {
throw new RuntimeException(
"unexpected com.sun.star.lang.IllegalArgumentException: "
@ -921,7 +921,7 @@ public final class PropertySetMixin {
false, false, wrapOptional));
UnoRuntime.queryInterface(
XIdlField2.class, type.getField("IsDefaulted")).set(
strct, new Boolean(isDefaulted));
strct, Boolean.valueOf(isDefaulted));
} catch (com.sun.star.lang.IllegalArgumentException e) {
throw new RuntimeException(
"unexpected com.sun.star.lang.IllegalArgumentException: "
@ -941,7 +941,7 @@ public final class PropertySetMixin {
try {
UnoRuntime.queryInterface(
XIdlField2.class, type.getField("IsPresent")).set(
strct, new Boolean(present));
strct, Boolean.valueOf(present));
if (present) {
XIdlField2 field = UnoRuntime.queryInterface(
XIdlField2.class, type.getField("Value"));

View File

@ -97,7 +97,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
Object value;
Object ret;
value= new Boolean(true);
value= Boolean.TRUE;
cl.setPropertyValue("PropBoolA", value);
ret= cl.getPropertyValue("PropBoolA");
r[i++]= ((Boolean) ret).equals( value);
@ -155,7 +155,7 @@ public class PropertySet_Test
r[i++]= ((Type) ret).equals(value);
// test protected,package,private members
value= new Boolean(true);
value= Boolean.TRUE;
cl.setPropertyValue("PropBoolB", value);
ret= cl.getPropertyValue("PropBoolB");
r[i++]= ((Boolean) ret).equals(value);
@ -172,7 +172,7 @@ public class PropertySet_Test
}
cl.resetPropertyMembers();
value= new Boolean(true);
value= Boolean.TRUE;
cl.setPropertyValue("PropObjectA", value);
ret= cl.getPropertyValue("PropObjectA");
r[i++]= ((Boolean) ret).equals(value);
@ -229,7 +229,7 @@ public class PropertySet_Test
r[i++]= ((Byte) ret).byteValue() == 1;
cl.resetPropertyMembers();
value= new Boolean(true);
value= Boolean.TRUE;
cl.setPropertyValue("PropAnyA", value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
@ -283,7 +283,7 @@ public class PropertySet_Test
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
cl.resetPropertyMembers();
value= new Any(new Type(boolean.class), new Boolean(true));
value= new Any(new Type(boolean.class), Boolean.TRUE);
cl.setPropertyValue("PropBoolA", value);
ret= cl.getPropertyValue("PropBoolA");
r[i++]= ret instanceof Boolean && util.anyEquals(value, ret);
@ -338,7 +338,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
value= new Any(new Type(boolean.class), new Boolean(true));
value= new Any(new Type(boolean.class), Boolean.TRUE);
cl.setPropertyValue("PropAnyA", value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
@ -394,7 +394,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
value= new Boolean(true);
value= Boolean.TRUE;
cl.setPropertyValue("PropBoolClass", value);
ret= cl.getPropertyValue("PropBoolClass");
r[i++]= ((Boolean) ret).equals( value);
@ -430,7 +430,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
cl.resetPropertyMembers();
value= new Any(new Type(boolean.class), new Boolean(true));
value= new Any(new Type(boolean.class), Boolean.TRUE);
cl.setPropertyValue("PropBoolClass", value);
ret= cl.getPropertyValue("PropBoolClass");
r[i++]= ret instanceof Boolean && util.anyEquals(value, ret);
@ -469,7 +469,7 @@ public class PropertySet_Test
// PropertyAttribute.READONLY
cl.propBoolA.Attributes= PropertyAttribute.READONLY;
try{
cl.setPropertyValue("PropBoolA", new Boolean(true));
cl.setPropertyValue("PropBoolA", Boolean.TRUE);
i++;
}catch (com.sun.star.beans.PropertyVetoException e)
{
@ -510,10 +510,10 @@ public class PropertySet_Test
Object objAny= cl.getPropertyValue("PropBoolClass");
r[i++]= util.isVoidAny( objAny);
cl.boolClassProp= new Boolean(true);
cl.boolClassProp= Boolean.TRUE;
cl.setPropertyValue("PropBoolClass", null);
r[i++]= cl.boolClassProp == null;
cl.boolClassProp= new Boolean(false);
cl.boolClassProp= Boolean.FALSE;
cl.setPropertyValue("PropBoolClass", new Any(new Type(boolean.class),null));
r[i++]= cl.boolClassProp == null;
@ -1199,11 +1199,11 @@ class TestClass extends PropertySet
Object[] outOldVal= new Object[1];
Object[] outNewVal= new Object[1];
Object value= new Boolean(true);
Object value= Boolean.TRUE;
try
{
r[i++]= convertPropertyValue(propBoolA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Boolean && outNewVal[0].equals(value) && outOldVal[0].equals(new Boolean(false));
r[i++]= outNewVal[0] instanceof Boolean && outNewVal[0].equals(value) && outOldVal[0].equals(Boolean.FALSE);
value= new Character('A');
r[i++]= convertPropertyValue(propCharA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Character && outNewVal[0].equals(value) && outOldVal[0].equals(new Character((char)0));
@ -1274,7 +1274,7 @@ class TestClass extends PropertySet
value= new Any( new Type(Integer.class),new Integer(111));
r[i++]= convertPropertyValue(propIntA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Integer && ((Integer)outNewVal[0]).equals( ((Any)value).getObject());
value= new Any(new Type(Boolean.class), new Boolean(true));
value= new Any(new Type(Boolean.class), Boolean.TRUE);
r[i++]= convertPropertyValue(propBoolA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Boolean && ((Boolean)outNewVal[0]).equals(((Any) value).getObject());
//Character, Byte, Short, Long
@ -1300,7 +1300,7 @@ class TestClass extends PropertySet
// test private, protected, package fields
value= new Boolean(true);
value= Boolean.TRUE;
r[i++]= convertPropertyValue(propBoolB, outNewVal, outOldVal, value);
r[i++]= ((Boolean)value).booleanValue() == ((Boolean) outNewVal[0]).booleanValue();
r[i++]= convertPropertyValue(propBoolC, outNewVal, outOldVal, value);
@ -1315,7 +1315,7 @@ class TestClass extends PropertySet
}
// Properties member of type Byte,Short etc.
value= new Boolean(true);
value= Boolean.TRUE;
r[i++]= convertPropertyValue(propBoolClass, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Boolean && outNewVal[0].equals(value);
value= new Character('A');
@ -1356,7 +1356,7 @@ class TestClass extends PropertySet
int i= 0;
resetPropertyMembers();
try {
Object value= new Boolean(true);
Object value= Boolean.TRUE;
setPropertyValueNoBroadcast(propBoolA, value);
r[i++]= boolPropA == ((Boolean) value).booleanValue();
value= new Character('A');
@ -1406,7 +1406,7 @@ class TestClass extends PropertySet
value = com.sun.star.beans.PropertyState.AMBIGUOUS_VALUE;
setPropertyValueNoBroadcast(propEnum, value);
r[i++]= enumPropertyState == value;
value= new Boolean(true);
value= Boolean.TRUE;
setPropertyValueNoBroadcast(propBoolB, value);
r[i++]= boolPropB == ((Boolean) value).booleanValue();
setPropertyValueNoBroadcast(propBoolC, value);

View File

@ -43,7 +43,7 @@ public final class Marshaling_Test {
Object data[] = new Object[] {
new com.sun.star.uno.RuntimeException("testRuntimeException"),
new com.sun.star.uno.Exception("testException"),
new Boolean(true),
Boolean.TRUE,
new Byte((byte)47),
new Character('k'),
new Double(0.12345),

View File

@ -37,7 +37,7 @@ public final class AnyConverter_Test {
Any anyVoid;
Any anyXTypeProvider;
Boolean aBool= new Boolean(true);
Boolean aBool= Boolean.TRUE;
Character aChar= new Character('A');
Byte aByte= new Byte((byte) 111);
Short aShort= new Short((short) 11111);

View File

@ -147,7 +147,7 @@ public abstract class BaseDialog extends BaseControl {
public void setCloseable(boolean closeable) {
setProperty("Closeable", new Boolean(closeable));
setProperty("Closeable", Boolean.valueOf(closeable));
}
public void repaint() {

View File

@ -132,7 +132,7 @@ public abstract class BaseControl {
}
public void setEnabled(boolean enabled) {
setProperty("Enabled", new Boolean(enabled));
setProperty("Enabled", Boolean.valueOf(enabled));
}
public void setVisible(boolean visible) {

View File

@ -40,7 +40,7 @@ public abstract class LabeledControl extends BaseControl {
}
public void setMultiLine(boolean multiLine) {
setProperty("MultiLine", new Boolean(multiLine));
setProperty("MultiLine", Boolean.valueOf(multiLine));
}
}

View File

@ -172,7 +172,7 @@ public class ChartInCalc
if( aDiaProp != null )
{
// change chart type
aDiaProp.setPropertyValue( "Lines", new Boolean( true ));
aDiaProp.setPropertyValue( "Lines", Boolean.TRUE);
// change attributes for all series
// set line width to 0.5mm
@ -308,7 +308,7 @@ public class ChartInCalc
// change main title
XPropertySet aDocProp = UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
aDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
XShape aTitle = maChartDocument.getTitle();
XPropertySet aTitleProp = UnoRuntime.queryInterface( XPropertySet.class, aTitle );

View File

@ -170,7 +170,7 @@ public class ChartInDraw
// change main title
XPropertySet aDocProp = UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
aDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
XShape aTitle = maChartDocument.getTitle();
XPropertySet aTitleProp = UnoRuntime.queryInterface( XPropertySet.class, aTitle );
@ -203,7 +203,7 @@ public class ChartInDraw
com.sun.star.lang.IllegalArgumentException, WrappedTargetException
{
XPropertySet aDiaProp = UnoRuntime.queryInterface( XPropertySet.class, maDiagram );
Boolean aTrue = new Boolean( true );
Boolean aTrue = Boolean.TRUE;
aDiaProp.setPropertyValue( "Dim3D", aTrue );
aDiaProp.setPropertyValue( "Deep", aTrue );
@ -278,7 +278,7 @@ public class ChartInDraw
aDirection.DirectionZ = 0.5;
aDiaProp.setPropertyValue( "D3DSceneLightDirection1", aDirection );
aDiaProp.setPropertyValue( "D3DSceneLightOn1", new Boolean( true ));
aDiaProp.setPropertyValue( "D3DSceneLightOn1", Boolean.TRUE);
}

View File

@ -106,7 +106,7 @@ public class ListenAtCalcRangeInDraw implements XChartDataChangeEventListener
{
UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument ).setPropertyValue(
"HasSubTitle", new Boolean( true ));
"HasSubTitle", Boolean.TRUE);
// start listening for death of spreadsheet
UnoRuntime.queryInterface(
@ -165,7 +165,7 @@ public class ListenAtCalcRangeInDraw implements XChartDataChangeEventListener
{
XPropertySet aDocProp = UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
aDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument.getSubTitle()).setPropertyValue(

View File

@ -725,7 +725,7 @@ public class ConfigExamples
Boolean bOldValue = (Boolean)xHPS.getHierarchicalPropertyValue(sSetting);
Boolean bNewValue = new Boolean( ! bOldValue.booleanValue() );
Boolean bNewValue = Boolean.valueOf( ! bOldValue.booleanValue() );
xHPS.setHierarchicalPropertyValue(sSetting,bNewValue);
}
@ -767,7 +767,7 @@ public class ConfigExamples
boolean bNew = ! bOld;
System.out.println("Replacing boolean value: " + aItemNames [i]);
aReplace.replaceByName( aItemNames [i], new Boolean( bNew ) );
aReplace.replaceByName( aItemNames [i], Boolean.valueOf( bNew ) );
}
}
@ -866,7 +866,7 @@ public class ConfigExamples
String sSampleDataSourceURL = "sdbc:flat:$(userurl)/database/SampleTextDatabase";
com.sun.star.beans.NamedValue [] aSettings = new com.sun.star.beans.NamedValue [2];
aSettings[0] = new com.sun.star.beans.NamedValue("HeaderLine",new Boolean(true));
aSettings[0] = new com.sun.star.beans.NamedValue("HeaderLine",Boolean.TRUE);
aSettings[1] = new com.sun.star.beans.NamedValue("FieldDelimiter",";");
String [] aTableFilter = new String[2];
@ -897,7 +897,7 @@ public class ConfigExamples
xDataSourceProperties.setPropertyValue("URL", sDataSourceURL );
xDataSourceProperties.setPropertyValue("User", sUser );
xDataSourceProperties.setPropertyValue("IsPasswordRequired", new Boolean( bNeedsPassword ) );
xDataSourceProperties.setPropertyValue("IsPasswordRequired", Boolean.valueOf( bNeedsPassword ) );
xDataSourceProperties.setPropertyValue("LoginTimeout", new Integer( nTimeout ) );
if ( aTableFilter != null )

View File

@ -277,7 +277,7 @@ public class CodeSamples
XPropertySet xProp = UnoRuntime.queryInterface(
XPropertySet.class,xSingleFac.createInstance());
xProp.setPropertyValue("Command","SELECT * FROM biblio");
xProp.setPropertyValue("EscapeProcessing",new Boolean(true));
xProp.setPropertyValue("EscapeProcessing",Boolean.TRUE);
XNameContainer xCont = UnoRuntime.queryInterface(XNameContainer.class, xQDefs);
try

View File

@ -70,7 +70,7 @@ public class ChangeOrderDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );

View File

@ -82,7 +82,7 @@ public class ControlAndSelectDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xComponent = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );

View File

@ -86,7 +86,7 @@ public class CustomShowDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );

View File

@ -78,7 +78,7 @@ public class DrawViewDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
java.io.File sourceFile = new java.io.File(args[0]);
StringBuffer sUrl = new StringBuffer("file:///");
@ -125,7 +125,7 @@ public class DrawViewDemo
System.out.println( aPropSeq[ i ].Name );
}
System.out.println("*** change into masterpage mode");
xPropSet.setPropertyValue( "IsMasterPageMode", new Boolean( true ) );
xPropSet.setPropertyValue( "IsMasterPageMode", Boolean.TRUE );
}
catch( Exception ex )

View File

@ -99,7 +99,7 @@ public class DrawingDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
sURL, "_blank", 0, pPropValues );

View File

@ -72,7 +72,7 @@ public class FillAndLineStyleDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );

View File

@ -77,7 +77,7 @@ public class GluePointDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );

View File

@ -71,7 +71,7 @@ public class GraphicExportDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
java.io.File sourceFile = new java.io.File(args[0]);
StringBuffer sUrl = new StringBuffer("file:///");

View File

@ -76,7 +76,7 @@ public class LayerDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
@ -122,8 +122,8 @@ public class LayerDemo
xLayerPropSet = UnoRuntime.queryInterface(
XPropertySet.class, xNotVisibleAndEditable );
xLayerPropSet.setPropertyValue( "Name", "NotVisibleAndEditable" );
xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );
xLayerPropSet.setPropertyValue( "IsVisible", Boolean.FALSE );
xLayerPropSet.setPropertyValue( "IsLocked", Boolean.TRUE );
// create a second layer
XLayer xNotEditable = xLayerManager.insertNewByIndex(
@ -132,8 +132,8 @@ public class LayerDemo
xLayerPropSet = UnoRuntime.queryInterface(
XPropertySet.class, xNotEditable );
xLayerPropSet.setPropertyValue( "Name", "NotEditable" );
xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( true ) );
xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );
xLayerPropSet.setPropertyValue( "IsVisible", Boolean.TRUE );
xLayerPropSet.setPropertyValue( "IsLocked", Boolean.TRUE );
// attach the layer to the rectangles
xLayerManager.attachShapeToLayer( xRect1, xNotVisibleAndEditable );

View File

@ -71,7 +71,7 @@ public class ObjectTransformationDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );

View File

@ -82,7 +82,7 @@ public class PresentationDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
@ -116,8 +116,8 @@ public class PresentationDemo
/* the following three properties provokes that the shape is dimmed
to red
after the animation has been finished */
xShapePropSet.setPropertyValue( "DimHide", new Boolean( false ) );
xShapePropSet.setPropertyValue( "DimPrevious", new Boolean( true ) );
xShapePropSet.setPropertyValue( "DimHide", Boolean.FALSE );
xShapePropSet.setPropertyValue( "DimPrevious", Boolean.TRUE );
xShapePropSet.setPropertyValue( "DimColor", new Integer( 0xff0000 ) );
@ -187,8 +187,8 @@ public class PresentationDemo
XPresentationSupplier xPresSupplier = UnoRuntime.queryInterface( XPresentationSupplier.class, xDrawDoc );
XPresentation xPresentation = xPresSupplier.getPresentation();
XPropertySet xPresPropSet = UnoRuntime.queryInterface( XPropertySet.class, xPresentation );
xPresPropSet.setPropertyValue( "IsEndless", new Boolean( true ) );
xPresPropSet.setPropertyValue( "IsAlwaysOnTop", new Boolean( true ) );
xPresPropSet.setPropertyValue( "IsEndless", Boolean.TRUE );
xPresPropSet.setPropertyValue( "IsAlwaysOnTop", Boolean.TRUE );
xPresPropSet.setPropertyValue( "Pause", new Integer( 0 ) );
xPresentation.start();
}

View File

@ -75,7 +75,7 @@ public class StyleDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xComponent = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );

View File

@ -75,7 +75,7 @@ public class TextDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
pPropValues[ 0 ].Value = new Boolean( true );
pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );

View File

@ -123,7 +123,7 @@ public class FirstLoadComponent {
// instantiate PropertyValue struct and set its member fields
PropertyValue asTemplate = new PropertyValue();
asTemplate.Name = "AsTemplate";
asTemplate.Value = new Boolean(true);
asTemplate.Value = Boolean.TRUE;
// assign PropertyValue struct to array of references for PropertyValue
// structs

View File

@ -134,7 +134,7 @@ public class HelloTextTableShape {
XPropertySet xShapeProps = UnoRuntime.queryInterface(
XPropertySet.class, writerShape);
// wrap text inside shape
xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true));
xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE);
XText xShapeText = UnoRuntime.queryInterface(XText.class, writerShape);
@ -217,7 +217,7 @@ public class HelloTextTableShape {
XCell xCell = xSpreadsheetCells.getCellByPosition(0,1);
XPropertySet xCellProps = UnoRuntime.queryInterface(
XPropertySet.class, xCell);
xCellProps.setPropertyValue("IsTextWrapped", new Boolean(true));
xCellProps.setPropertyValue("IsTextWrapped", Boolean.TRUE);
XText xCellText = UnoRuntime.queryInterface(XText.class, xCell);
@ -244,7 +244,7 @@ public class HelloTextTableShape {
XPropertySet xShapeProps = UnoRuntime.queryInterface(
XPropertySet.class, calcShape);
// wrap text inside shape
xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true));
xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE);
XText xShapeText = UnoRuntime.queryInterface(XText.class, calcShape);
@ -291,7 +291,7 @@ public class HelloTextTableShape {
XPropertySet.class, drawShape);
// wrap text inside shape
xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true));
xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE);
manipulateText(xShapeText);
manipulateShape(xDrawShape);

View File

@ -55,7 +55,7 @@ class LockControlModels extends ComponentTreeTraversal
public LockControlModels( String sDataField, boolean bLockIt )
{
m_sDataField = sDataField;
m_aLockIt = new Boolean( bLockIt );
m_aLockIt = Boolean.valueOf( bLockIt );
m_nLevel = 0;
}

View File

@ -46,21 +46,21 @@ public class ControlValidation extends DocumentBasedExample
validation = new SingleControlValidation( m_document, 5, 55, "DatabaseDateField", new DateValidator() );
validation.setExplanatoryText( "Please enter a date in the current month" );
validation.getInputField().setPropertyValue( "Dropdown", new Boolean( true ) );
validation.getInputField().setPropertyValue( "Dropdown", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 55, "DatabaseTimeField", new TimeValidator() );
validation.setExplanatoryText( "Please enter a time. Valid values are all full hours." );
validation = new SingleControlValidation( m_document, 5, 110, "DatabaseCheckBox", new BooleanValidator( false ) );
validation.setExplanatoryText( "Please check (well, or uncheck) the box. Don't leave it in indetermined state." );
validation.getInputField().setPropertyValue( "TriState", new Boolean( true ) );
validation.getInputField().setPropertyValue( "TriState", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 110, "DatabaseRadioButton", new BooleanValidator( true ), 3, 0 );
validation.setExplanatoryText( "Please check any but the first button" );
validation = new SingleControlValidation( m_document, 5, 165, "DatabaseListBox", new ListSelectionValidator( ), 1, 24 );
validation.setExplanatoryText( "Please select not more than two entries." );
validation.getInputField().setPropertyValue( "MultiSelection", new Boolean( true ) );
validation.getInputField().setPropertyValue( "MultiSelection", Boolean.TRUE );
validation.getInputField().setPropertyValue( "StringItemList", new String[] { "first", "second", "third", "forth", "fivth" } );
// switch to alive mode

View File

@ -618,9 +618,9 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
xButton.setPropertyValue( "HelpText", sName );
// don't want buttons to be accessible by the "tab" key - this would be uncomfortable when traveling
// with records with "tab"
xButton.setPropertyValue( "Tabstop", new Boolean( false ) );
xButton.setPropertyValue( "Tabstop", Boolean.FALSE );
// similar, they should not steal the focus when clicked
xButton.setPropertyValue( "FocusOnClick", new Boolean( false ) );
xButton.setPropertyValue( "FocusOnClick", Boolean.FALSE );
m_aOperator.addButton( xButton, _formFeature );
@ -804,7 +804,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
xManualFilter.setPropertyValue( "Name", "ManualFilter" );
XPropertySet xApplyFilter = m_formLayer.createControlAndShape( "CommandButton", 139, 125, 25, 6, xSalesFilterForm );
xApplyFilter.setPropertyValue( "Name", "ApplyFilter" );
xApplyFilter.setPropertyValue( "DefaultButton", new Boolean( true ) );
xApplyFilter.setPropertyValue( "DefaultButton", Boolean.TRUE );
new SalesFilter( m_document, xSalesFormProps, xFilterSelection,
xManualFilter, xApplyFilter );

View File

@ -83,7 +83,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
{
// init control models
m_xFilterList.setPropertyValue( "Dropdown", new Boolean( true ) );
m_xFilterList.setPropertyValue( "Dropdown", Boolean.TRUE );
m_xFilterList.setPropertyValue( "LineCount", new Short( (short)11 ) );
m_xFilterList.setPropertyValue( "StringItemList", new String[] { "ever (means no filter)", "this morning", "1 week ago", "1 month ago", "1 year ago", "<other>" } );
m_xFilterList.setPropertyValue( "DefaultSelection", new Short[] { new Short( (short)0 ) } );
@ -239,7 +239,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
{
try
{
m_xApplyFilter.setPropertyValue( "Enabled", new Boolean( m_bSettingsDirty ) );
m_xApplyFilter.setPropertyValue( "Enabled", Boolean.valueOf( m_bSettingsDirty ) );
}
catch ( com.sun.star.uno.Exception e )
{
@ -306,7 +306,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
// custom filter?
boolean bCustomFilter = isManualFilter( m_nPreviousFilterIndex );
m_xManualFilter.setPropertyValue( "Enabled", new Boolean( bCustomFilter ) );
m_xManualFilter.setPropertyValue( "Enabled", Boolean.valueOf( bCustomFilter ) );
if ( bCustomFilter )
m_aDocument.getCurrentView().grabControlFocus( m_xManualFilter );
@ -430,7 +430,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
sCompleteFilter += sOdbcDate;
}
m_xSalesForm.setPropertyValue( "Filter", sCompleteFilter );
m_xSalesForm.setPropertyValue( "ApplyFilter", new Boolean( true ) );
m_xSalesForm.setPropertyValue( "ApplyFilter", Boolean.TRUE );
// and reload the form
XLoadable xLoad = UnoRuntime.queryInterface(

View File

@ -74,7 +74,7 @@ public class SingleControlValidation implements XFormComponentValidityListener
try
{
m_inputLabel = m_formLayer.createControlAndShape( "FixedText", columnPos, rowPos, 70, 12, null );
m_inputLabel.setPropertyValue( "MultiLine", new Boolean( true ) );
m_inputLabel.setPropertyValue( "MultiLine", Boolean.TRUE );
com.sun.star.awt.FontDescriptor font = (com.sun.star.awt.FontDescriptor)m_inputLabel.getPropertyValue( "FontDescriptor" );
font.Weight = com.sun.star.awt.FontWeight.BOLD;

View File

@ -55,7 +55,7 @@ public class SpreadsheetValueBinding extends DocumentBasedExample
numericControl.setPropertyValue( "ValueMax", new Short( (short)5 ) );
numericControl.setPropertyValue( "Value", new Short( (short)1 ) );
numericControl.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) );
numericControl.setPropertyValue( "Spin", new Boolean( true ) );
numericControl.setPropertyValue( "Spin", Boolean.TRUE );
// bind the control model to cell B2
implBind( numericControl, document.createCellBinding( sheet, exchangeColumn, exchangeRow ) );
@ -64,7 +64,7 @@ public class SpreadsheetValueBinding extends DocumentBasedExample
// insert a list box
XPropertySet listBox = m_formLayer.insertControlLine( "ListBox",
"select an entry", "", 2, 40, 20 );
listBox.setPropertyValue( "Dropdown", new Boolean( false ) );
listBox.setPropertyValue( "Dropdown", Boolean.FALSE );
// a list binding for cell range C1-C5
final short listSourceSheet = (short)1;

View File

@ -152,7 +152,7 @@ public class MessageBox {
com.sun.star.beans.PropertyValue[] args = new com.sun.star.beans.PropertyValue [1];
args[0] = new com.sun.star.beans.PropertyValue();
args[0].Name = "Hidden";
args[0].Value = new Boolean(true);
args[0].Value = Boolean.TRUE;
String strDoc = "private:factory/swriter";
xComp = xCLoader.loadComponentFromURL(strDoc, "_blank", 0, args);

View File

@ -104,7 +104,7 @@ public class SystemDialog {
// add a control to the dialog to add the extension automatically to the filename...
XFilePickerControlAccess xFilePickerControlAccess = UnoRuntime.queryInterface(XFilePickerControlAccess.class, xFilePicker);
xFilePickerControlAccess.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, (short) 0, new Boolean(true));
xFilePickerControlAccess.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, (short) 0, Boolean.TRUE);
xComponent = UnoRuntime.queryInterface(XComponent.class, xFilePicker);

View File

@ -1266,7 +1266,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
// Alternatively we could have done it also this way:
// bdoEnable = (nState == 1);
xModelPropertySet.setPropertyValue("Enabled", new Boolean(bdoEnable));
xModelPropertySet.setPropertyValue("Enabled", Boolean.valueOf(bdoEnable));
}catch (com.sun.star.uno.Exception ex){
/* perform individual exception handling here.
* Possible exception types are:
@ -1352,7 +1352,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XPropertySet xRMItemPSet = UnoRuntime.queryInterface(XPropertySet.class, oRoadmapItem);
xRMItemPSet.setPropertyValue("Label", _sLabel);
// sometimes steps are supposed to be set disabled depending on the program logic...
xRMItemPSet.setPropertyValue("Enabled", new Boolean(_bEnabled));
xRMItemPSet.setPropertyValue("Enabled", Boolean.valueOf(_bEnabled));
// in this context the "ID" is meant to refer to a step of the dialog
xRMItemPSet.setPropertyValue("ID", new Integer(_ID));
m_xRMIndexCont.insertByIndex(Index, oRoadmapItem);

View File

@ -229,7 +229,7 @@ public class CustomizeView extends JPanel
com.sun.star.beans.PropertyValue[] lProperties = new com.sun.star.beans.PropertyValue[1];
lProperties[0] = new com.sun.star.beans.PropertyValue();
lProperties[0].Name = m_sProp;
lProperties[0].Value = new Boolean(bState);
lProperties[0].Value = Boolean.valueOf(bState);
// execute (dispatch) it into the frame
if (m_xFrame==null)

View File

@ -174,7 +174,7 @@ public class LinguisticExamples
PropertyValue[] aProps = new PropertyValue[1];
aProps[0] = new PropertyValue();
aProps[0].Name = "IsGermanPreReform";
aProps[0].Value = new Boolean( true );
aProps[0].Value = Boolean.TRUE;
GetSpell();
@ -292,7 +292,7 @@ public class LinguisticExamples
// set a spellchecker and hyphenator property value to a defined state
try {
aLinguProps.setPropertyValue("IsGermanPreReform", new Boolean(true));
aLinguProps.setPropertyValue("IsGermanPreReform", Boolean.TRUE);
} catch (Exception e) {
}
@ -305,7 +305,7 @@ public class LinguisticExamples
// event that eventually results in the listeners
// 'processLinguServiceEvent' function being called
try {
aLinguProps.setPropertyValue("IsGermanPreReform", new Boolean(false));
aLinguProps.setPropertyValue("IsGermanPreReform", Boolean.FALSE);
} catch (Exception e) {
}

View File

@ -175,7 +175,7 @@ public class Number_Formats
UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class,
xIndexAccess.getByIndex(1));
xColPropSet.setPropertyValue( "OptimalWidth", new Boolean(true) );
xColPropSet.setPropertyValue( "OptimalWidth", Boolean.TRUE );
}

View File

@ -143,7 +143,7 @@ class ExampleMember implements com.sun.star.container.XNamed,
if ( aPropertyName.equals( "IsVisible" ) ||
aPropertyName.equals( "ShowDetails" ) )
{
return new Boolean( true ); // always true
return Boolean.TRUE; // always true
}
else
throw new com.sun.star.beans.UnknownPropertyException();
@ -352,7 +352,7 @@ class ExampleLevel implements
if ( aPropertyName.equals( "SubTotals" ) )
return new com.sun.star.sheet.GeneralFunction[0];
else if ( aPropertyName.equals( "ShowEmpty" ) )
return new Boolean( true );
return Boolean.TRUE;
else
throw new com.sun.star.beans.UnknownPropertyException();
}
@ -648,7 +648,7 @@ class ExampleDimension implements
if ( aPropertyName.equals( "Original" ) )
return null;
else if ( aPropertyName.equals( "IsDataLayoutDimension" ) )
return new Boolean( nDimension == ExampleSettings.nDataDimension );
return Boolean.valueOf( nDimension == ExampleSettings.nDataDimension );
else if ( aPropertyName.equals( "Orientation" ) )
return eOrientation;
else if ( aPropertyName.equals( "Position" ) )
@ -903,7 +903,7 @@ public class ExampleDataPilotSource
if ( aPropertyName.equals( "ColumnGrand" ) ||
aPropertyName.equals( "RowGrand" ) )
{
return new Boolean( false ); // always false
return Boolean.FALSE; // always false
}
else
throw new com.sun.star.beans.UnknownPropertyException();

View File

@ -167,7 +167,7 @@ public class GeneralTableSample extends SpreadsheetDocHelper
aColumnObj = xColumnsName.getByName( "D" );
xPropSet = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, aColumnObj );
xPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
xPropSet.setPropertyValue( "IsVisible", Boolean.FALSE );
// Get row 7 by index (interface XIndexAccess)
Object aRowObj = xRows.getByIndex( 6 );

View File

@ -266,7 +266,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// from styles.ParagraphProperties
xPropSet.setPropertyValue( "ParaLeftMargin", new Integer( 500 ) );
// from table.CellProperties
xPropSet.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
xPropSet.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xPropSet.setPropertyValue( "CellBackColor", new Integer( 0x99CCFF ) );
@ -317,7 +317,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// from com.sun.star.styles.ParagraphProperties
xPropSet.setPropertyValue( "ParaLeftMargin", new Integer( 500 ) );
// from com.sun.star.table.CellProperties
xPropSet.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
xPropSet.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xPropSet.setPropertyValue( "CellBackColor", new Integer( 0x99CCFF ) );
@ -327,7 +327,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xReplaceDesc.setSearchString( "cell" );
xReplaceDesc.setReplaceString( "text" );
// property SearchWords searches for whole cells!
xReplaceDesc.setPropertyValue( "SearchWords", new Boolean( false ) );
xReplaceDesc.setPropertyValue( "SearchWords", Boolean.FALSE );
int nCount = xReplace.replaceAll( xReplaceDesc );
System.out.println( "Search text replaced " + nCount + " times." );
@ -648,7 +648,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// modify properties of the new style
xPropSet = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, aCellStyle );
xPropSet.setPropertyValue( "CellBackColor", new Integer( 0x888888 ) );
xPropSet.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
xPropSet.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
@ -848,7 +848,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
com.sun.star.beans.XPropertySet xValidPropSet = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class,
xCellPropSet.getPropertyValue( "Validation" ));
xValidPropSet.setPropertyValue( "Type", com.sun.star.sheet.ValidationType.DECIMAL );
xValidPropSet.setPropertyValue( "ShowErrorMessage", new Boolean( true ) );
xValidPropSet.setPropertyValue( "ShowErrorMessage", Boolean.TRUE );
xValidPropSet.setPropertyValue( "ErrorMessage", "This is an invalid value!" );
xValidPropSet.setPropertyValue( "ErrorAlertStyle", com.sun.star.sheet.ValidationAlertStyle.STOP );
// condition
@ -1117,7 +1117,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
aFilterFields[0].NumericValue = 1998;
xFilterDesc.setFilterFields( aFilterFields );
com.sun.star.beans.XPropertySet xFilterProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xFilterDesc );
xFilterProp.setPropertyValue( "ContainsHeader", new Boolean( true ) );
xFilterProp.setPropertyValue( "ContainsHeader", Boolean.TRUE );
xFilter.filter( xFilterDesc );
@ -1150,7 +1150,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
aSortDesc[0].Value = aSortFields;
aSortDesc[1] = new com.sun.star.beans.PropertyValue();
aSortDesc[1].Name = "ContainsHeader";
aSortDesc[1].Value = new Boolean( true );
aSortDesc[1].Value = Boolean.TRUE;
com.sun.star.util.XSortable xSort = UnoRuntime.queryInterface( com.sun.star.util.XSortable.class, xRange );
xSort.sort( aSortDesc );
@ -1207,7 +1207,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
com.sun.star.sheet.XCellRangeReferrer xRef = UnoRuntime.queryInterface( com.sun.star.sheet.XCellRangeReferrer.class, aRangeObj );
com.sun.star.table.XCellRange xResultRange = xRef.getReferredCells();
com.sun.star.beans.XPropertySet xResultProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xResultRange );
xResultProp.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
xResultProp.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xResultProp.setPropertyValue( "CellBackColor", new Integer( 0xFFFFCC ) );
}
}

View File

@ -89,13 +89,13 @@ public class ViewSample extends SpreadsheetDocHelper
com.sun.star.sheet.XCellRangeReferrer xRefer = UnoRuntime.queryInterface( com.sun.star.sheet.XCellRangeReferrer.class, aPane );
com.sun.star.table.XCellRange xRange = xRefer.getReferredCells();
com.sun.star.beans.XPropertySet xRangeProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xRange );
xRangeProp.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
xRangeProp.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xRangeProp.setPropertyValue( "CellBackColor", new Integer( 0xFFFFCC ) );
// --- View settings ---
// change the view to display green grid lines
com.sun.star.beans.XPropertySet xProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xController );
xProp.setPropertyValue( "ShowGrid", new Boolean(true) );
xProp.setPropertyValue( "ShowGrid", Boolean.TRUE );
xProp.setPropertyValue( "GridColor", new Integer(0x00CC00) );
// --- Range selection ---
@ -109,7 +109,7 @@ public class ViewSample extends SpreadsheetDocHelper
aArguments[0].Value = "Please select a cell range (e.g. C4:E6)";
aArguments[1] = new com.sun.star.beans.PropertyValue();
aArguments[1].Name = "CloseOnMouseRelease";
aArguments[1].Value = new Boolean(true);
aArguments[1].Value = Boolean.TRUE;
xRngSel.startRangeSelection( aArguments );
synchronized (aListener)
{

View File

@ -439,7 +439,7 @@ public class TextDocuments {
PropertyValue[] loadProps = new PropertyValue[1];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "AsTemplate";
loadProps[0].Value = new Boolean(true);
loadProps[0].Value = Boolean.TRUE;
// load
return xComponentLoader.loadComponentFromURL(loadUrl, "_blank",
0, loadProps);
@ -717,7 +717,7 @@ public class TextDocuments {
XPropertySet xRow = UnoRuntime.queryInterface(
XPropertySet.class, xRows.getByIndex ( 0 ) );
// If BackTransparant is false, then the background color is visible
xRow.setPropertyValue( "BackTransparent", new Boolean(false));
xRow.setPropertyValue( "BackTransparent", Boolean.FALSE);
// Specify the color of the background to be dark blue
xRow.setPropertyValue( "BackColor", new Integer(6710932));
@ -725,7 +725,7 @@ public class TextDocuments {
XPropertySet xTableProps = UnoRuntime.queryInterface(
XPropertySet.class, xTable );
// We want visible background colors
xTableProps.setPropertyValue( "BackTransparent", new Boolean(false));
xTableProps.setPropertyValue( "BackTransparent", Boolean.FALSE);
// Set the background colour to light blue
xTableProps.setPropertyValue( "BackColor", new Integer(13421823));
@ -863,7 +863,7 @@ public class TextDocuments {
// We want a visible background
xTableProps.setPropertyValue( "BackTransparent",
new Boolean(false));
Boolean.FALSE);
// We want the background to be light blue
xTableProps.setPropertyValue( "BackColor", new Integer(13421823));
@ -879,7 +879,7 @@ public class TextDocuments {
XPropertySet.class, xRows.getByIndex ( 0 ) );
// We want the background of the first row to be visible too
xRow.setPropertyValue( "BackTransparent", new Boolean(false));
xRow.setPropertyValue( "BackTransparent", Boolean.FALSE);
// And let's make it dark blue
xRow.setPropertyValue( "BackColor", new Integer(6710932));

View File

@ -81,7 +81,7 @@ public class ResourceRemover {
// Destroy a resource physically...
Boolean deletePhysically = new Boolean( true );
Boolean deletePhysically = Boolean.TRUE;
// Execute command "delete".
m_helper.executeCommand( m_content, "delete", deletePhysically );

View File

@ -265,7 +265,7 @@ public class ConverterServlet extends HttpServlet {
// Setting the flag for hidding the open document
propertyvalue[ 0 ] = new PropertyValue();
propertyvalue[ 0 ].Name = "Hidden";
propertyvalue[ 0 ].Value = new Boolean(true);
propertyvalue[ 0 ].Value = Boolean.TRUE;
// Loading the wanted document
Object objectDocumentToStore =
@ -282,7 +282,7 @@ public class ConverterServlet extends HttpServlet {
// Setting the flag for overwriting
propertyvalue[ 0 ] = new PropertyValue();
propertyvalue[ 0 ].Name = "Overwrite";
propertyvalue[ 0 ].Value = new Boolean(true);
propertyvalue[ 0 ].Value = Boolean.TRUE;
// Setting the filter name
propertyvalue[ 1 ] = new PropertyValue();
propertyvalue[ 1 ].Name = "FilterName";

View File

@ -103,7 +103,7 @@ public class DocumentConverter {
new com.sun.star.beans.PropertyValue[1];
propertyValues[0] = new com.sun.star.beans.PropertyValue();
propertyValues[0].Name = "Hidden";
propertyValues[0].Value = new Boolean(true);
propertyValues[0].Value = Boolean.TRUE;
Object oDocToStore =
DocumentConverter.xCompLoader.loadComponentFromURL(
@ -120,7 +120,7 @@ public class DocumentConverter {
// Setting the flag for overwriting
propertyValues[0] = new com.sun.star.beans.PropertyValue();
propertyValues[0].Name = "Overwrite";
propertyValues[0].Value = new Boolean(true);
propertyValues[0].Value = Boolean.TRUE;
// Setting the filter name
propertyValues[1] = new com.sun.star.beans.PropertyValue();
propertyValues[1].Name = "FilterName";

View File

@ -86,7 +86,7 @@ public class DocumentSaver {
new com.sun.star.beans.PropertyValue[1];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Hidden";
propertyValue[0].Value = new Boolean(true);
propertyValue[0].Value = Boolean.TRUE;
Object oDocToStore = xCompLoader.loadComponentFromURL(
sLoadUrl.toString(), "_blank", 0, propertyValue );
@ -97,7 +97,7 @@ public class DocumentSaver {
propertyValue = new com.sun.star.beans.PropertyValue[ 2 ];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Overwrite";
propertyValue[0].Value = new Boolean(true);
propertyValue[0].Value = Boolean.TRUE;
propertyValue[1] = new com.sun.star.beans.PropertyValue();
propertyValue[1].Name = "FilterName";
propertyValue[1].Value = "StarOffice XML (Writer)";

View File

@ -238,7 +238,7 @@ public class SDraw {
try {
xSPS.setPropertyValue("FillColor", new Integer(getCol(r,g,b)));
xSPS.setPropertyValue("Shadow", new Boolean(true));
xSPS.setPropertyValue("Shadow", Boolean.TRUE);
} catch (Exception e) {
System.err.println("Can't change colors " + e);
e.printStackTrace(System.err);

View File

@ -795,7 +795,7 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie
aMedDescr[0].Name = "URL";
aMedDescr[0].Value = (Object) aFileURI;
aMedDescr[1].Name = "ReadOnly";
aMedDescr[1].Value = (Object) new Boolean( false );
aMedDescr[1].Value = (Object) Boolean.FALSE;
Object oEmbObj = xEmbedFactory.createInstanceInitFromMediaDescriptor( m_xStorage,
"EmbedSub",
aMedDescr );

View File

@ -162,7 +162,7 @@ public class ChartTypeChange {
XPropertySet xPropSet = UnoRuntime.queryInterface(
XPropertySet.class, xDiagram );
xPropSet.setPropertyValue( "Dim3D", new Boolean( booleanIs3D ) );
xPropSet.setPropertyValue( "Dim3D", Boolean.valueOf( booleanIs3D ) );
xChartDoc.setDiagram(xDiagram);
}

View File

@ -138,7 +138,7 @@ public class SCalc {
oStyleFamilyNameContainer.insertByName("My Style", oInt1);
XPropertySet oCPS1 = UnoRuntime.queryInterface(
XPropertySet.class, oInt1 );
oCPS1.setPropertyValue("IsCellBackgroundTransparent", new Boolean(false));
oCPS1.setPropertyValue("IsCellBackgroundTransparent", Boolean.FALSE);
oCPS1.setPropertyValue("CellBackColor",new Integer(6710932));
oCPS1.setPropertyValue("CharColor",new Integer(16777215));
XInterface oInt2 = (XInterface) oDocMSF.createInstance(
@ -146,7 +146,7 @@ public class SCalc {
oStyleFamilyNameContainer.insertByName("My Style2", oInt2);
XPropertySet oCPS2 = UnoRuntime.queryInterface(
XPropertySet.class, oInt2 );
oCPS2.setPropertyValue("IsCellBackgroundTransparent", new Boolean(false));
oCPS2.setPropertyValue("IsCellBackgroundTransparent", Boolean.FALSE);
oCPS2.setPropertyValue("CellBackColor",new Integer(13421823));
} catch (Exception e) {
e.printStackTrace(System.err);
@ -309,7 +309,7 @@ public class SCalc {
System.out.println("Change Diagramm to 3D");
XPropertySet oCPS = UnoRuntime.queryInterface(
XPropertySet.class, oDiag );
oCPS.setPropertyValue("Dim3D", new Boolean(true));
oCPS.setPropertyValue("Dim3D", Boolean.TRUE);
System.out.println("Change the title");
Thread.sleep(200);
XPropertySet oTPS = UnoRuntime.queryInterface(

View File

@ -80,7 +80,7 @@ public class TestHelper {
try
{
xPropSet.setPropertyValue( "MediaType", sMediaType );
xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) );
xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) );
}
catch( Exception e )
{
@ -208,7 +208,7 @@ public class TestHelper {
// set properties to the stream
try
{
xPropSet.setPropertyValue( "Encrypted", new Boolean( bEncrypted ) );
xPropSet.setPropertyValue( "Encrypted", Boolean.valueOf( bEncrypted ) );
}
catch( Exception e )
{
@ -711,7 +711,7 @@ public class TestHelper {
{
try
{
xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) );
xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE );
sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) );
}
catch( Exception e )

View File

@ -160,7 +160,7 @@ public class BookmarkInsertion {
com.sun.star.beans.XPropertySet.class, xSearchDescriptor);
xPropertySet.setPropertyValue("SearchRegularExpression",
new Boolean( true ) );
Boolean.TRUE );
xSearchInterface = (com.sun.star.uno.XInterface)
xSearchable.findFirst(xSearchDescriptor);

View File

@ -155,9 +155,9 @@ public class SWriter {
// Change the BackColor
try {
xTTPS.setPropertyValue("BackTransparent", new Boolean(false));
xTTPS.setPropertyValue("BackTransparent", Boolean.FALSE);
xTTPS.setPropertyValue("BackColor",new Integer(13421823));
xTTRowPS.setPropertyValue("BackTransparent", new Boolean(false));
xTTRowPS.setPropertyValue("BackTransparent", Boolean.FALSE);
xTTRowPS.setPropertyValue("BackColor",new Integer(6710932));
} catch (Exception e) {
@ -206,7 +206,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
xTCPS.setPropertyValue("CharColor",new Integer(255));
xTCPS.setPropertyValue("CharShadowed", new Boolean(true));
xTCPS.setPropertyValue("CharShadowed", Boolean.TRUE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
e.printStackTrace(System.err);
@ -316,7 +316,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
xTCPS.setPropertyValue("CharColor",new Integer(65536));
xTCPS.setPropertyValue("CharShadowed", new Boolean(false));
xTCPS.setPropertyValue("CharShadowed", Boolean.FALSE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
e.printStackTrace(System.err);

View File

@ -99,7 +99,7 @@ public class StyleCreation {
new Float( com.sun.star.awt.FontWeight.BOLD ) );
System.out.println( "set the font attribute 'Bold'" );
xPropertySet.setPropertyValue("CharAutoKerning", new Boolean( true ) );
xPropertySet.setPropertyValue("CharAutoKerning", Boolean.TRUE );
System.out.println( "set the paragraph attribute 'AutoKerning'" );
xPropertySet.setPropertyValue("ParaAdjust",
new Integer( com.sun.star.style.ParagraphAdjust.CENTER_value ) );

View File

@ -88,7 +88,7 @@ public class TestHelper {
try
{
xPropSet.setPropertyValue( "MediaType", sMediaType );
xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) );
xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) );
}
catch( Exception e )
{
@ -736,7 +736,7 @@ public class TestHelper {
{
try
{
xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) );
xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE );
sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) );
}
catch( Exception e )

View File

@ -72,7 +72,7 @@ public class RegressionTest_i27773 implements StorageTest {
{
String sTempURL = AnyConverter.toString( xPropSet.getPropertyValue( "Uri" ) );
// m_aTestHelper.Message( "URL: " + sTempURL );
xPropSet.setPropertyValue( "RemoveFile", new Boolean( false ) );
xPropSet.setPropertyValue( "RemoveFile", Boolean.FALSE );
}
catch ( Exception e )
{

View File

@ -87,7 +87,7 @@ public class TestHelper {
try
{
xPropSet.setPropertyValue( "MediaType", sMediaType );
xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) );
xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) );
}
catch( Exception e )
{
@ -313,7 +313,7 @@ public class TestHelper {
// set properties to the stream
try
{
xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", new Boolean( bEncrypted ) );
xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", Boolean.valueOf( bEncrypted ) );
}
catch( Exception e )
{
@ -503,7 +503,7 @@ public class TestHelper {
// set properties to the stream
try
{
xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", new Boolean( bEncrypted ) );
xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", Boolean.valueOf( bEncrypted ) );
}
catch( Exception e )
{
@ -1265,7 +1265,7 @@ public class TestHelper {
{
try
{
xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) );
xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE );
sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) );
}
catch( Exception e )

View File

@ -274,7 +274,7 @@ public class GraphicalDifferenceCheck
}
PropertyValue pvFilterName = new PropertyValue("FilterName", -1, exportFilter, com.sun.star.beans.PropertyState.getDefault());
PropertyValue pvOverwrite = new PropertyValue("Overwrite", -1, new Boolean(true), com.sun.star.beans.PropertyState.getDefault());
PropertyValue pvOverwrite = new PropertyValue("Overwrite", -1, Boolean.TRUE, com.sun.star.beans.PropertyState.getDefault());
try
{

View File

@ -519,7 +519,7 @@ public class OfficePrint {
if (aSettings != null)
{
XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, aSettings );
xPropSet.setPropertyValue( "PrintAllSheets", new Boolean( true ) );
xPropSet.setPropertyValue( "PrintAllSheets", Boolean.TRUE );
GlobalLogWriter.get().println("PrintAllSheets := true");
}
}

View File

@ -475,7 +475,7 @@ public class OpenOfficePostscriptCreator implements IOffice
if (aSettings != null)
{
XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, aSettings );
xPropSet.setPropertyValue( "PrintAllSheets", new Boolean( true ) );
xPropSet.setPropertyValue( "PrintAllSheets", Boolean.TRUE );
GlobalLogWriter.println("PrintAllSheets := true");
}
}

View File

@ -50,7 +50,7 @@ public class ValueChanger {
if (oldValue instanceof Boolean) {
boolean oldbool = ((Boolean) oldValue).booleanValue();
newValue = new Boolean(!oldbool);
newValue = Boolean.valueOf(!oldbool);
} else
if (oldValue instanceof Integer) {

View File

@ -57,10 +57,10 @@ public class _UnoControlButtonModel extends MultiPropertyTest {
protected PropertyTester BoolTester = new PropertyTester() {
@Override
protected Object getNewValue(String propName, Object oldValue) {
if (util.ValueComparer.equalValue(oldValue, new Boolean(true)))
return new Boolean(false);
if (util.ValueComparer.equalValue(oldValue, Boolean.TRUE))
return Boolean.FALSE;
else
return new Boolean(true);
return Boolean.TRUE;
}
};

View File

@ -73,7 +73,7 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
if (utils.isVoid(old)) return new Boolean(true) ;
if (utils.isVoid(old)) return Boolean.TRUE ;
else return null ;
}
}) ;

View File

@ -92,7 +92,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -69,7 +69,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String prop, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -96,7 +96,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String prop, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}
@ -144,10 +144,10 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest {
Boolean dsc = null;
if (util.utils.isVoid(oDsc)) {
log.println("Property is void, set it to true");
dsc = new Boolean(true);
dsc = Boolean.TRUE;
} else {
dsc = (Boolean) oDsc;
dsc = new Boolean(!dsc.booleanValue());
dsc = Boolean.valueOf(!dsc.booleanValue());
log.println("Setting property to "+dsc);
}
oObj.setPropertyValue("DateShowCentury",dsc);

View File

@ -96,7 +96,7 @@ public class _UnoControlEditModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -105,7 +105,7 @@ public class _UnoControlFileControlModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -216,7 +216,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
testProperty("StrictFromat", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object v) {
return utils.isVoid(v) ? new Boolean(true) :
return utils.isVoid(v) ? Boolean.TRUE :
super.getNewValue(p,v) ;
}
}) ;
@ -230,7 +230,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object v) {
return utils.isVoid(v) ? new Boolean(true) :
return utils.isVoid(v) ? Boolean.TRUE :
null ;
}
}) ;

View File

@ -94,7 +94,7 @@ public class _UnoControlImageControlModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object v) {
return utils.isVoid(v) ? new Boolean(true) :
return utils.isVoid(v) ? Boolean.TRUE :
null ;
}
}) ;

View File

@ -92,7 +92,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -108,7 +108,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -104,7 +104,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -60,7 +60,7 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -126,7 +126,7 @@ public class _UnoControlTimeFieldModel extends MultiPropertyTest {
testProperty("Tabstop", new PropertyTester() {
@Override
protected Object getNewValue(String p, Object old) {
return utils.isVoid(old) ? new Boolean(true) : null ;
return utils.isVoid(old) ? Boolean.TRUE : null ;
}
}) ;
}

View File

@ -76,7 +76,7 @@ public class _BarDiagram extends MultiPropertyTest {
oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() );
log.println("Set it to 3D");
try {
oObj.setPropertyValue("Dim3D", new Boolean(true));
oObj.setPropertyValue("Dim3D", Boolean.TRUE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception while set property value");
e.printStackTrace(log);
@ -125,8 +125,8 @@ public class _BarDiagram extends MultiPropertyTest {
public void _NumberOfLines() {
log.println("Set it to 2D");
try {
oObj.setPropertyValue("Dim3D", new Boolean(false));
oObj.setPropertyValue("Vertical", new Boolean(false));
oObj.setPropertyValue("Dim3D", Boolean.FALSE);
oObj.setPropertyValue("Vertical", Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception while set property value");
e.printStackTrace(log);

View File

@ -65,7 +65,7 @@ public class _Chart3DBarProperties extends MultiPropertyTest {
log.println("Change Diagram to 3D");
oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() );
try {
oObj.setPropertyValue("Dim3D", new Boolean(true));
oObj.setPropertyValue("Dim3D", Boolean.TRUE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't change Diagram to 3D");
e.printStackTrace(log);
@ -98,7 +98,7 @@ public class _Chart3DBarProperties extends MultiPropertyTest {
log.println("Change Diagram to 3D");
oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() );
try {
oObj.setPropertyValue("Dim3D", new Boolean(false));
oObj.setPropertyValue("Dim3D", Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't change Diagram back to 2D");
e.printStackTrace(log);

View File

@ -61,8 +61,8 @@ public class _ChartAxis extends MultiPropertyTest {
try {
//if AutoOrigin isn't true then this property works only when
//current Origin is less then new value of Max
oObj.setPropertyValue("AutoOrigin", new Boolean(true));
oObj.setPropertyValue("AutoMax",new Boolean(false));
oObj.setPropertyValue("AutoOrigin", Boolean.TRUE);
oObj.setPropertyValue("AutoMax",Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log);
@ -93,8 +93,8 @@ public class _ChartAxis extends MultiPropertyTest {
try {
//if AutoOrigin isn't true then this property works only when
//current Origin is greater then new value of Min
oObj.setPropertyValue("AutoOrigin", new Boolean(true));
oObj.setPropertyValue("AutoMin", new Boolean(false));
oObj.setPropertyValue("AutoOrigin", Boolean.TRUE);
oObj.setPropertyValue("AutoMin", Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log);
@ -122,7 +122,7 @@ public class _ChartAxis extends MultiPropertyTest {
*/
public void _Origin() {
try {
oObj.setPropertyValue("Logarithmic",new Boolean(false));
oObj.setPropertyValue("Logarithmic",Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log);
@ -162,8 +162,8 @@ public class _ChartAxis extends MultiPropertyTest {
*/
public void _StepMain() {
try {
oObj.setPropertyValue("AutoStepMain", new Boolean(false));
oObj.setPropertyValue("Logarithmic",new Boolean(false));
oObj.setPropertyValue("AutoStepMain", Boolean.FALSE);
oObj.setPropertyValue("Logarithmic",Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log);

Some files were not shown because too many files have changed in this diff Show More