I don't think the getTrigger() method does what you are hoping it does.
If you take a look at the javadoc for the Joystick class, then look at the getTrigger() method, you'll see that it doesn't return a boolean value.
The triggers on the logitech [edit] F310 [/edit](and xbox if I remember correctly) are on axis 3. Axes in the
Joystick class return doubles, in this case, a numerical value from 1.0 to -1.0. So when one trigger is pulled all the way, axis 3 reads 1.0. When the other is pulled all the way, axis 3 reads -1.0. When they are both pulled simultaneously, the values are essentially added. So if you were to pull them both down all the way you would read 0.0 on axis three. This is important to understand. It is the reason why you wouldn't put two commands that needed to be used at the same time onto the same axis. Both triggers pressed looks the same as neither trigger pressed.
To get back to your question though... if you want to kick off commands from an analog axis on a joystick, then you need to turn that axis into a button. You need to turn a value of 1.0 to -1.0 (double) into true or false (boolean).
I developed a class for my team last year which does just this. I've tried to clean up the code and document how it should be used. It is available
here. There is an example of its use in the comment at the top of the code.
Please let me know if you have any questions.