|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.timjohnstondev.unitconverter.logic.UnitLogic
public final class UnitLogic
Utility class that contains all of the logic for checking and updating the units with mole.
| Method Summary | |
|---|---|
static boolean |
hasMoles(ListModel model)
Determines if there is a mole part of the unit already. |
static void |
insertMol(JList list,
String unitSeparator)
Changes the unit to show mole as appropriate. |
static boolean |
isMolUnitDivisor(ListModel model)
Determines if the mole part of the unit will be in the divisor or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean hasMoles(ListModel model)
model - list of the units
public static boolean isMolUnitDivisor(ListModel model)
model - list of the units
public static void insertMol(JList list,
String unitSeparator)
list - list of the unitsunitSeparator - the unit separator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||