|
|
|
@ -141,7 +141,7 @@ public class DataChooserWindow extends CustomJDialog
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Hashtable getData( boolean multiple )
|
|
|
|
public Hashtable getData()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( canceled )
|
|
|
|
if( canceled )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -149,28 +149,33 @@ public class DataChooserWindow extends CustomJDialog
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Hashtable hash = new Hashtable();
|
|
|
|
Hashtable hash = new Hashtable();
|
|
|
|
for( int i = 0; i < labels.length; ++i )
|
|
|
|
for( int i = 0; i < labels.length; ++i )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hash.put( labels[ i ], combos[ i ].getSelectedItem() );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return hash;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Hashtable[] getMultipleData()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if( canceled )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Hashtable hash[] = new Hashtable[ allItems[ 0 ].length ];
|
|
|
|
|
|
|
|
for( int j = 0; j < hash.length; ++j )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hash[ j ] = new Hashtable();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for( int i = 0; i < labels.length; ++i )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
String sel = combos[ i ].getSelectedItem().toString();
|
|
|
|
String sel = combos[ i ].getSelectedItem().toString();
|
|
|
|
if( multiple )
|
|
|
|
if( sel.length() > 0 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( sel.length() > 0 )
|
|
|
|
for( int j = 0; j < allItems.length; ++j )
|
|
|
|
{
|
|
|
|
|
|
|
|
String col[] = new String[ allItems.length ];
|
|
|
|
|
|
|
|
for( int j = 0; j < allItems.length; ++j )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
col[ j ] = allItems[ j ][ combos[ i ].getSelectedIndex() ];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
hash.put( labels[ i ], col );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hash.put( labels[ i ], empty );
|
|
|
|
hash[ j ].put( labels[ i ], allItems[ j ][ combos[ i ].getSelectedIndex() ] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hash.put( labels[ i ], sel );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return hash;
|
|
|
|
return hash;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|